[media] omap3isp: Deprecate platform data support
authorSakari Ailus <sakari.ailus@iki.fi>
Wed, 25 Mar 2015 22:57:39 +0000 (19:57 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 19:48:07 +0000 (16:48 -0300)
Print a warning when the driver is used with platform data. Existing
platform data users should move to DT now.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/omap3isp/isp.c

index 9ef7e03..ff51c4f 100644 (file)
@@ -2456,6 +2456,8 @@ static int isp_probe(struct platform_device *pdev)
                isp->syscon = syscon_regmap_lookup_by_pdevname("syscon.0");
                if (IS_ERR(isp->syscon))
                        return PTR_ERR(isp->syscon);
+               dev_warn(&pdev->dev,
+                        "Platform data support is deprecated! Please move to DT now!\n");
        }
 
        isp->autoidle = autoidle;