media: ccs: Remove remaining support for platform data
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 11 Feb 2020 21:35:40 +0000 (22:35 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Dec 2020 09:41:50 +0000 (10:41 +0100)
No need to support platform data; remove support for conveying hardware
configuration that way.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ccs/ccs-core.c

index bb3759e..af79d80 100644 (file)
@@ -2860,9 +2860,6 @@ static struct ccs_hwconfig *ccs_get_hwconfig(struct device *dev)
        int i;
        int rval;
 
-       if (!fwnode)
-               return dev->platform_data;
-
        ep = fwnode_graph_get_next_endpoint(fwnode, NULL);
        if (!ep)
                return NULL;