diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2016-09-19 18:41:14 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-21 15:03:04 -0200 |
commit | 997695407512c3d0a7bf2f5e589ab288ac6d0f6b (patch) | |
tree | e5501a8a2c843564a33cdc78bafbf2328d496d8f /drivers/media/i2c/vs6624.c | |
parent | 231d1a014aeb8c2288316572f2fe876c5145b91c (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/vs6624.c')
0 files changed, 0 insertions, 0 deletions