mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
media: via-camera: call viafb_pm_unregister in remove()
The power management hooks were never unregistered, which caused a crash when unloading the module. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
ba78170ef1
commit
9230a4cc31
|
|
@ -1459,6 +1459,9 @@ static int viacam_remove(struct platform_device *pdev)
|
|||
|
||||
video_unregister_device(&cam->vdev);
|
||||
v4l2_device_unregister(&cam->v4l2_dev);
|
||||
#ifdef CONFIG_PM
|
||||
viafb_pm_unregister(&viacam_pm_hooks);
|
||||
#endif
|
||||
free_irq(viadev->pdev->irq, cam);
|
||||
via_sensor_power_release(cam);
|
||||
v4l2_ctrl_handler_free(&cam->ctrl_handler);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user