提交 12313c2a 编写于 作者: R Rob Clark

drm/msm: fix compile error for non-dt builds

Signed-off-by: NRob Clark <robdclark@gmail.com>
上级 119ecb7f
...@@ -974,12 +974,11 @@ static int msm_pdev_probe(struct platform_device *pdev) ...@@ -974,12 +974,11 @@ static int msm_pdev_probe(struct platform_device *pdev)
for (i = 0; i < ARRAY_SIZE(devnames); i++) { for (i = 0; i < ARRAY_SIZE(devnames); i++) {
struct device *dev; struct device *dev;
int ret;
dev = bus_find_device_by_name(&platform_bus_type, dev = bus_find_device_by_name(&platform_bus_type,
NULL, devnames[i]); NULL, devnames[i]);
if (!dev) { if (!dev) {
dev_info(master, "still waiting for %s\n", devnames[i]); dev_info(&pdev->dev, "still waiting for %s\n", devnames[i]);
return -EPROBE_DEFER; return -EPROBE_DEFER;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册