linux/drivers/media/test-drivers/vimc
Chen Zhongjin f74d3f326d media: vimc: Fix wrong function called when vimc_init() fails
In vimc_init(), when platform_driver_register(&vimc_pdrv) fails,
platform_driver_unregister(&vimc_pdrv) is wrongly called rather than
platform_device_unregister(&vimc_pdev), which causes kernel warning:

 Unexpected driver unregister!
 WARNING: CPU: 1 PID: 14517 at drivers/base/driver.c:270 driver_unregister+0x8f/0xb0
 RIP: 0010:driver_unregister+0x8f/0xb0
 Call Trace:
  <TASK>
  vimc_init+0x7d/0x1000 [vimc]
  do_one_initcall+0xd0/0x4e0
  do_init_module+0x1cf/0x6b0
  load_module+0x65c2/0x7820

Fixes: 4a29b70907 ("[media] vimc: Subdevices as modules")
Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-11-25 07:26:16 +00:00
..
Kconfig media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
Makefile media: vimc: add ancillary lens 2022-07-15 14:40:09 +01:00
vimc-capture.c media: drivers: use video device pipeline start/stop 2022-09-24 09:14:20 +02:00
vimc-common.c media: vimc: Add missing {RGB,BGR,GBR}888 media bus codes 2020-05-05 17:25:34 +02:00
vimc-common.h media: vimc: expand the names of vimc entity types 2022-07-15 14:42:14 +01:00
vimc-core.c media: vimc: Fix wrong function called when vimc_init() fails 2022-11-25 07:26:16 +00:00
vimc-debayer.c media: vimc: expand the names of vimc entity types 2022-07-15 14:42:14 +01:00
vimc-lens.c media: vimc: expand the names of vimc entity types 2022-07-15 14:42:14 +01:00
vimc-scaler.c media: vimc: expand the names of vimc entity types 2022-07-15 14:42:14 +01:00
vimc-sensor.c media: vimc: expand the names of vimc entity types 2022-07-15 14:42:14 +01:00
vimc-streamer.c media: mc-entity: Rename media_entity_remote_pad() to media_pad_remote_pad_first() 2022-07-17 11:21:35 +01:00
vimc-streamer.h