[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 9ef7e035aa6ce4d999f18abfe2d503ed6911bd28..ff51c4f9d35e60234940396f1b4f49786f4a5a12 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;