ARM: OMAP: PM: only register TWL with voltage layer when device is present
authorKevin Hilman <khilman@ti.com>
Wed, 23 Nov 2011 22:43:01 +0000 (14:43 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 23 Nov 2011 22:43:01 +0000 (14:43 -0800)
Current code registers voltage layer details for TWL PMIC even when a TWL
has not been registered.  Fix this to only register the TWL with voltage
layer when the TWL PMIC is initialized by board-level code.

Signed-off-by: Kevin Hilman <khilman@ti.com>
Cc: stable@vger.kernel.org
Signed-off-by: Tony Lindgren <tony@atomide.com>

No differences found