pxa_camera: remove init() callback
authorAntonio Ospite <ospite@studenti.unina.it>
Tue, 17 Nov 2009 22:04:23 +0000 (23:04 +0100)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:11:00 +0000 (15:11 -0300)
commit6b727c68ea7083acd008da7c9734a19a4cdd52dc
treebe6a1a75d9dadc0ab5466b5bb42c55edbc5dbaf2
parent81355e40826acea76274c2ef5ff7d156ff28d183
pxa_camera: remove init() callback

pxa_camera init() callback is sometimes abused to setup MFP for PXA CIF, or
even to request GPIOs to be used by the camera *sensor*. These initializations
can be performed statically in machine init functions.

The current semantics for this init() callback is ambiguous anyways, it is
invoked in pxa_camera_activate(), hence at device node open, but its users use
it like a generic initialization to be done at module init time (configure
MFP, request GPIOs for *sensor* control).

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
arch/arm/mach-pxa/include/mach/camera.h
drivers/media/video/pxa_camera.c