diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2022-01-22 14:31:37 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-04-24 10:05:53 +0300 |
commit | cef699749f3789add5ecaf0a2f73a659cae1c7ae (patch) | |
tree | cf4c68f42642659a7ab906af3202440acd555ff0 /drivers/media/platform/st/stm32/stm32-dcmi.c | |
parent | 78a171e58717685ea0eb082a24bc75bd9e20518f (diff) | |
download | linux-cef699749f3789add5ecaf0a2f73a659cae1c7ae.tar.xz |
media: mc: Set bus_info in media_device_init()
Set bus_info field based on struct device in media_device_init() and
remove corresponding code from drivers.
Also update media_device_init() documentation: the dev field must be now
initialised before calling it.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform/st/stm32/stm32-dcmi.c')
-rw-r--r-- | drivers/media/platform/st/stm32/stm32-dcmi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/platform/st/stm32/stm32-dcmi.c b/drivers/media/platform/st/stm32/stm32-dcmi.c index c4c65d852525..09a743cd7004 100644 --- a/drivers/media/platform/st/stm32/stm32-dcmi.c +++ b/drivers/media/platform/st/stm32/stm32-dcmi.c @@ -1997,8 +1997,6 @@ static int dcmi_probe(struct platform_device *pdev) /* Initialize media device */ strscpy(dcmi->mdev.model, DRV_NAME, sizeof(dcmi->mdev.model)); - snprintf(dcmi->mdev.bus_info, sizeof(dcmi->mdev.bus_info), - "platform:%s", DRV_NAME); dcmi->mdev.dev = &pdev->dev; media_device_init(&dcmi->mdev); |