Mauro Carvalho Chehab <mchehab+samsung@xxxxxxxxxx> writes: > From: Robert Jarzmik <robert.jarzmik@xxxxxxx> > > In the soc_camera removal, the board specific power callback was > dropped. This at least will remove the power optimization from ezx and > em-x270 pxa based boards. > > As to recreate the same level of functionality, make the mt9m111 have a > regulator providing it its power, so that board designers can plug in a > gpio based or ldo regulator, mimicking their former soc_camera power > hook. > > Fixes: 5c10113cc668 ("media: mt9m111: make a standalone v4l2 subdevice") > > [mchehab+samsung@xxxxxxxxxx: check return values for regulator_enable and > fix a build warning] > Signed-off-by: Robert Jarzmik <robert.jarzmik@xxxxxxx> > Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@xxxxxxxxxx> Tested-by: Robert Jarzmik <robert.jarzmik@xxxxxxx> (on mioa701, pxa architecture, platform data based, on top of 5.0-rc1) Cheers. -- Robert