[media] v4l2-device: Don't unregister ACPI/Device Tree based devices
authorTommi Franttila <tommi.franttila@intel.com>
Thu, 12 Nov 2015 09:01:07 +0000 (07:01 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 17 Nov 2015 17:04:12 +0000 (15:04 -0200)
commit0d51ebd3f41f195e33ed8d9b9d67ed90f6e298ec
tree0e3bcbaaebf99898f7c39ca005e3953b13c0451e
parent16dfe72fd879abc98255bbea62fae9d312ef3b5a
[media] v4l2-device: Don't unregister ACPI/Device Tree based devices

When a V4L2 sub-device backed by a DT or ACPI based device was removed,
the device was unregistered as well which certainly was not intentional,
as the client device would not be re-created by simply reinstating the
V4L2 sub-device (indeed the device would have to be there first!).

Skip unregistering the device in case it has non-NULL of_node or fwnode.

Signed-off-by: Tommi Franttila <tommi.franttila@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-device.c
This page took 0.025236 seconds and 5 git commands to generate.