OSDN Git Service

media: atmel-isc: Enable the clocks during probe
authorWenyou Yang <wenyou.yang@microchip.com>
Tue, 10 Oct 2017 02:46:38 +0000 (04:46 +0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 27 Oct 2017 11:56:59 +0000 (13:56 +0200)
commit01192aa1c5c2a7363cc790ea102c7929ec577240
tree60a10202f6ecc9e375def40c02d48c708cc0b67e
parent64f6306a5af21561ad6b9a3247fc68126b8be88a
media: atmel-isc: Enable the clocks during probe

To meet the relationship, enable the HCLOCK and ispck during the
device probe, "isc_pck frequency is less than or equal to isc_ispck,
and isc_ispck is greater than or equal to HCLOCK."
Meanwhile, call the pm_runtime_enable() in the right place.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/atmel/atmel-isc.c