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

Commit a3927471 authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[ARM] pxa: avoid needless pxa_gpio_mode() during resume



The pin configurations are restored early on during resume.  There's
no need for drivers to re-affirm the gpio modes.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent da1a3dc0
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -293,14 +293,6 @@ static int pxa2xx_ac97_suspend(struct platform_device *pdev,
static int pxa2xx_ac97_resume(struct platform_device *pdev,
	struct snd_soc_dai *dai)
{
	pxa_gpio_mode(GPIO31_SYNC_AC97_MD);
	pxa_gpio_mode(GPIO30_SDATA_OUT_AC97_MD);
	pxa_gpio_mode(GPIO28_BITCLK_AC97_MD);
	pxa_gpio_mode(GPIO29_SDATA_IN_AC97_MD);
#ifdef CONFIG_PXA27x
	/* Use GPIO 113 as AC97 Reset on Bulverde */
	pxa_gpio_mode(113 | GPIO_ALT_FN_2_OUT);
#endif
	clk_enable(ac97_clk);
	return 0;
}