linux/drivers/media/platform/atmel
Eugen Hristev 79199002db media: atmel: atmel-isc: fix INIT_WORK misplacement
In case the completion function failes, unbind will be called
which will call cancel_work for awb_work.
This will trigger a WARN message from the workqueue.
To avoid this, move the INIT_WORK call at the start of the completion
function. This way the work is always initialized, which corresponds
to the 'always canceled' unbind code.

Fixes: 93d4a26c3d ("[media] atmel-isc: add the isc pipeline function")

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-08 13:56:25 -04:00
..
atmel-isc-regs.h media: atmel: atmel-isc: limit incoming pixels per frame 2019-05-08 13:55:09 -04:00
atmel-isc.c media: atmel: atmel-isc: fix INIT_WORK misplacement 2019-05-08 13:56:25 -04:00
atmel-isi.c media: platform: fix several typos 2019-03-01 09:35:21 -05:00
atmel-isi.h [media] atmel-isi: move out of soc_camera to atmel 2017-04-10 08:00:06 -03:00
Kconfig media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
Makefile [media] atmel-isi: move out of soc_camera to atmel 2017-04-10 08:00:06 -03:00