OSDN Git Service

drm/msm: fix compile error for non-dt builds
authorRob Clark <robdclark@gmail.com>
Mon, 4 Aug 2014 19:45:16 +0000 (15:45 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 26 Aug 2014 14:43:31 +0000 (10:43 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_drv.c

index b447c01..26ee80d 100644 (file)
@@ -974,12 +974,11 @@ static int msm_pdev_probe(struct platform_device *pdev)
 
        for (i = 0; i < ARRAY_SIZE(devnames); i++) {
                struct device *dev;
-               int ret;
 
                dev = bus_find_device_by_name(&platform_bus_type,
                                NULL, devnames[i]);
                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;
                }