media: pxa_camera: disable and unprepare the clock source on error
authorFlavio Ceolin <flavio.ceolin@intel.com>
Wed, 6 Dec 2017 16:38:50 +0000 (11:38 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 18 Dec 2017 19:57:45 +0000 (14:57 -0500)
commit9392483122e8818c0bf38e82ccf01b71e0c2151e
tree8ea48bcf679385cb7558ff4c3ba3e280fe51eb8c
parent866a6eccdd998418065ff28fd280252bfa63e43c
media: pxa_camera: disable and unprepare the clock source on error

pxa_camera_probe() was not calling pxa_camera_deactivate(),
responsible to call clk_disable_unprepare(), on the failure path. This
was leading to unbalancing source clock.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/pxa_camera.c