aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-rx51-peripherals.c
diff options
context:
space:
mode:
authorJarkko Nikula <jhnikula@gmail.com>2010-12-21 12:25:34 -0500
committerTony Lindgren <tony@atomide.com>2010-12-22 14:06:24 -0500
commitb5b9945b2b139ca922b49062053f34486ca64cca (patch)
tree7e199dae035d323fc8da4a4ccd8e6b2c41c85882 /arch/arm/mach-omap2/board-rx51-peripherals.c
parent5b59cc2fc2ff90369d6aa7862caaba3cf45b5075 (diff)
omap: rx51: Cleanup vdds_sdi supply construction
It is much more cleaner to use REGULATOR_SUPPLY macro and a device name instead of having a reference to rx51_display_device.dev with #if defined() guards. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Acked-by: Tomi Valkeinen <tomi.valkeinen@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-rx51-peripherals.c')
-rw-r--r--arch/arm/mach-omap2/board-rx51-peripherals.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c
index fd95ccf8be5c..768f0dcdc34e 100644
--- a/arch/arm/mach-omap2/board-rx51-peripherals.c
+++ b/arch/arm/mach-omap2/board-rx51-peripherals.c
@@ -359,17 +359,8 @@ static struct regulator_consumer_supply rx51_vio_supplies[] = {
359 REGULATOR_SUPPLY("DVDD", "2-0019"), 359 REGULATOR_SUPPLY("DVDD", "2-0019"),
360}; 360};
361 361
362#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)
363extern struct platform_device rx51_display_device;
364#endif
365
366static struct regulator_consumer_supply rx51_vaux1_consumers[] = { 362static struct regulator_consumer_supply rx51_vaux1_consumers[] = {
367#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) 363 REGULATOR_SUPPLY("vdds_sdi", "omapdss"),
368 {
369 .supply = "vdds_sdi",
370 .dev = &rx51_display_device.dev,
371 },
372#endif
373}; 364};
374 365
375static struct regulator_init_data rx51_vaux1 = { 366static struct regulator_init_data rx51_vaux1 = {