Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: smiapp: Put the device again if starting streaming fails

If there was an error in starting streaming, put the runtime usage count
of the device.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Sakari Ailus and committed by
Mauro Carvalho Chehab
22ad4e05 96e3a6b9

+4 -1
+4 -1
drivers/media/i2c/smiapp/smiapp-core.c
··· 1565 1565 sensor->streaming = true; 1566 1566 1567 1567 rval = smiapp_start_streaming(sensor); 1568 - if (rval < 0) 1568 + if (rval < 0) { 1569 1569 sensor->streaming = false; 1570 + pm_runtime_mark_last_busy(&client->dev); 1571 + pm_runtime_put_autosuspend(&client->dev); 1572 + } 1570 1573 1571 1574 return rval; 1572 1575 }