summaryrefslogtreecommitdiff
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2016-09-13 11:25:42 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-10-21 15:24:49 -0200
commit88b3e311b52679a5c81af6bb0495d2c45049bb07 (patch)
tree7fa75c93670e2532ea18cec4a52660e4e30c44ca /drivers/media/i2c
parentb08726bf2ea03d1eabf8908c70a3518fa502313b (diff)
downloadlinux-next-88b3e311b52679a5c81af6bb0495d2c45049bb07.tar.gz
[media] smiapp: Drop BUG_ON() in suspend path
Checking that the mutex is not acquired is unnecessary for user processes are stopped by this point. Drop the check. 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')
-rw-r--r--drivers/media/i2c/smiapp/smiapp-core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c
index 8f9690e375bf..1891c28ca6a4 100644
--- a/drivers/media/i2c/smiapp/smiapp-core.c
+++ b/drivers/media/i2c/smiapp/smiapp-core.c
@@ -2709,8 +2709,6 @@ static int smiapp_suspend(struct device *dev)
struct smiapp_sensor *sensor = to_smiapp_sensor(subdev);
bool streaming;
- BUG_ON(mutex_is_locked(&sensor->mutex));
-
if (sensor->power_count == 0)
return 0;