Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5b9945b authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Tony Lindgren
Browse files

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: default avatarJarkko Nikula <jhnikula@gmail.com>
Acked-by: default avatarTomi Valkeinen <tomi.valkeinen@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5b59cc2f
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -359,17 +359,8 @@ static struct regulator_consumer_supply rx51_vio_supplies[] = {
	REGULATOR_SUPPLY("DVDD", "2-0019"),
};

#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)
extern struct platform_device rx51_display_device;
#endif

static struct regulator_consumer_supply rx51_vaux1_consumers[] = {
#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)
	{
		.supply	= "vdds_sdi",
		.dev	= &rx51_display_device.dev,
	},
#endif
	REGULATOR_SUPPLY("vdds_sdi", "omapdss"),
};

static struct regulator_init_data rx51_vaux1 = {