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

Commit 7a5deff6 authored by Roland Stigge's avatar Roland Stigge
Browse files

ARM: LPC32xx: Remove board specific GPIO init



This patch removes a board specific GPIO initialization (for MMC power) from
the platform initialization. On the reference boards (PHY3250 and EA3250), this
separate initialization is not necessary, now reducing board specific
initialization in the platform init of phy3250.c.

Signed-off-by: default avatarRoland Stigge <stigge@antcom.de>
parent 5b941238
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -267,12 +267,6 @@ static void __init lpc3250_machine_init(void)


	of_platform_populate(NULL, of_default_bus_match_table,
	of_platform_populate(NULL, of_default_bus_match_table,
			     lpc32xx_auxdata_lookup, NULL);
			     lpc32xx_auxdata_lookup, NULL);

	/* Register GPIOs used on this board */
	if (gpio_request(MMC_PWR_ENABLE_GPIO, "mmc_power_en"))
		pr_err("Error requesting gpio %u", MMC_PWR_ENABLE_GPIO);
	else if (gpio_direction_output(MMC_PWR_ENABLE_GPIO, 1))
		pr_err("Error setting gpio %u to output", MMC_PWR_ENABLE_GPIO);
}
}


static char const *lpc32xx_dt_compat[] __initdata = {
static char const *lpc32xx_dt_compat[] __initdata = {