summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/sr030pc30.c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2016-09-19 18:41:14 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-10-21 15:03:04 -0200
commit997695407512c3d0a7bf2f5e589ab288ac6d0f6b (patch)
treee5501a8a2c843564a33cdc78bafbf2328d496d8f /drivers/media/i2c/sr030pc30.c
parent231d1a014aeb8c2288316572f2fe876c5145b91c (diff)
[media] smiapp: Fix resource management in registration failure
If the registered() callback failed, resources were left unaccounted for. Fix this, as well as add unregistering the sub-devices in driver unregistered() callback. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c/sr030pc30.c')
0 files changed, 0 insertions, 0 deletions