OMAP: DSS2: Delay regulator_get() calls
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 22 Feb 2011 13:53:46 +0000 (15:53 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 Mar 2011 13:46:23 +0000 (15:46 +0200)
commit5f42f2ce63f5ecbd9bc744b9c25d9786e9a8e3b4
tree8ed7158d7e8b39cb184ade1bed6794963f44b9fc
parentac425ed5fb0b6564d4eeee9fb13ef0c1f6da8e8f
OMAP: DSS2: Delay regulator_get() calls

DSS submodules DPI/SDI/DSI/VENC require a regulator to function.
However, if the board doesn't use, say, SDI, the board shouldn't need to
configure vdds_sdi regulator required by the SDI module.

Currently the regulators are acquired when the DSS driver is loaded.
This means that if the kernel is configured with SDI, vdds_sdi regulator
is needed for all boards.

This patch changes the DSS driver to acquire the regulators only when a
display of particular type is initialized. For example, vdds_sdi is
acquired when sdi_init_display() is called.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dpi.c
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/sdi.c
drivers/video/omap2/dss/venc.c