diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2022-01-22 11:31:37 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-04-24 08:05:53 +0100 |
commit | cef699749f3789add5ecaf0a2f73a659cae1c7ae (patch) | |
tree | cf4c68f42642659a7ab906af3202440acd555ff0 /drivers/media/pci/intel/ipu3 | |
parent | 78a171e58717685ea0eb082a24bc75bd9e20518f (diff) | |
download | linux-stable-cef699749f3789add5ecaf0a2f73a659cae1c7ae.tar.gz linux-stable-cef699749f3789add5ecaf0a2f73a659cae1c7ae.tar.bz2 linux-stable-cef699749f3789add5ecaf0a2f73a659cae1c7ae.zip |
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/pci/intel/ipu3')
-rw-r--r-- | drivers/media/pci/intel/ipu3/ipu3-cio2-main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/pci/intel/ipu3/ipu3-cio2-main.c b/drivers/media/pci/intel/ipu3/ipu3-cio2-main.c index 0e9b0503b62a..b15fac775e14 100644 --- a/drivers/media/pci/intel/ipu3/ipu3-cio2-main.c +++ b/drivers/media/pci/intel/ipu3/ipu3-cio2-main.c @@ -1777,8 +1777,6 @@ static int cio2_pci_probe(struct pci_dev *pci_dev, cio2->media_dev.dev = dev; strscpy(cio2->media_dev.model, CIO2_DEVICE_NAME, sizeof(cio2->media_dev.model)); - snprintf(cio2->media_dev.bus_info, sizeof(cio2->media_dev.bus_info), - "PCI:%s", pci_name(cio2->pci_dev)); cio2->media_dev.hw_revision = 0; media_device_init(&cio2->media_dev); |