From: Sakari Ailus Date: Tue, 11 Feb 2020 21:35:40 +0000 (+0100) Subject: media: ccs: Remove remaining support for platform data X-Git-Tag: iomap-folio-5.17-old~2551^2~116 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5323aaf19e6c0e184edb23eb70cfe5da38f2c1fb;p=users%2Fwilly%2Flinux.git media: ccs: Remove remaining support for platform data No need to support platform data; remove support for conveying hardware configuration that way. Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/ccs/ccs-core.c b/drivers/media/i2c/ccs/ccs-core.c index bb3759e2534c..af79d80ebb59 100644 --- a/drivers/media/i2c/ccs/ccs-core.c +++ b/drivers/media/i2c/ccs/ccs-core.c @@ -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;