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)
commit46232a3622c6e33605906ee6690dfef372925f53
treecdfa7d32a8ebf7f380aaff0ccc45d472d4da6536
parentcc1b0765da6078b906772b79ff211b88cc0ae958
ARM: OMAP: PM: only register TWL with voltage layer when device is present

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>
arch/arm/mach-omap2/pm.c
arch/arm/mach-omap2/twl-common.c
arch/arm/mach-omap2/twl-common.h