From: Andy Shevchenko Date: Thu, 11 Aug 2011 11:35:04 +0000 (-0300) Subject: [media] adp1653: set media entity type X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=653822b9276472aa760fa80f32ffcc777de9c403;p=openwrt%2Fstaging%2Fblogic.git [media] adp1653: set media entity type The type of a media entity is default for this driver. This patch makes it explicitly defined as MEDIA_ENT_T_V4L2_SUBDEV_FLASH. Signed-off-by: Andy Shevchenko Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/adp1653.c b/drivers/media/video/adp1653.c index 2e874c335c13..5914390211ff 100644 --- a/drivers/media/video/adp1653.c +++ b/drivers/media/video/adp1653.c @@ -438,6 +438,8 @@ static int adp1653_probe(struct i2c_client *client, if (ret < 0) goto free_and_quit; + flash->subdev.entity.type = MEDIA_ENT_T_V4L2_SUBDEV_FLASH; + return 0; free_and_quit: