diff options
| author | Mark Brown <broonie@kernel.org> | 2026-05-29 22:42:35 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-05-29 22:42:35 +0100 |
| commit | ec5c0aa668768e3d00a14ba8712549eb107ef9ee (patch) | |
| tree | 5c87d18656bd6152644fab681274199cfe477180 /arch | |
| parent | a774f9abf146d5fc76baa6e6ce9d63f4b0da3696 (diff) | |
| parent | 9617ce6798f8eee61d8068f0ea03a08ce051932e (diff) | |
| download | linux-next-history-ec5c0aa668768e3d00a14ba8712549eb107ef9ee.tar.gz | |
Merge branch 'for-next' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm/mach-pxa/pxa27x.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 49c677f2dac15..1d34de7e5fbef 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c @@ -58,8 +58,15 @@ static unsigned long ac97_reset_config[] = { GPIO95_AC97_nRESET, }; -void pxa27x_configure_ac97reset(int reset_gpio, bool to_gpio) +void pxa27x_configure_ac97reset(struct gpio_desc *gpiod, bool to_gpio) { + int reset_gpio; + + if (!gpiod) + return; + + reset_gpio = desc_to_gpio(gpiod); + /* * This helper function is used to work around a bug in the pxa27x's * ac97 controller during a warm reset. The configuration of the |
