summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap1/board-sx1-mmc.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2023-05-08 23:20:07 +0200
committerLinus Walleij <linus.walleij@linaro.org>2023-05-24 15:01:36 +0200
commite519f0bb64efc2c9c8b67bb2d114dda458bdc34d (patch)
tree9e365e82e5f078aae2d67a5049e35d3ce0818958 /arch/arm/mach-omap1/board-sx1-mmc.c
parent767d83361aaa6a1ecb4d5b89eeb38a267239917a (diff)
ARM/mmc: Convert old mmci-omap to GPIO descriptors
A recent change to the OMAP driver making it use a dynamic GPIO base created problems with some old OMAP1 board files, among them Nokia 770, SX1 and also the OMAP2 Nokia n8x0. Fix up all instances of GPIOs being used for the MMC driver by pushing the handling of power, slot selection and MMC "cover" into the driver as optional GPIOs. This is maybe not the most perfect solution as the MMC framework have some central handlers for some of the stuff, but it at least makes the situtation better and solves the immediate issue. Fixes: 92bf78b33b0b ("gpio: omap: use dynamic allocation of base") Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-omap1/board-sx1-mmc.c')
-rw-r--r--arch/arm/mach-omap1/board-sx1-mmc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/board-sx1-mmc.c b/arch/arm/mach-omap1/board-sx1-mmc.c
index f1c160924dfe..f183a8448a7b 100644
--- a/arch/arm/mach-omap1/board-sx1-mmc.c
+++ b/arch/arm/mach-omap1/board-sx1-mmc.c
@@ -9,7 +9,6 @@
* Copyright (C) 2007 Instituto Nokia de Tecnologia - INdT
*/
-#include <linux/gpio.h>
#include <linux/platform_device.h>
#include "hardware.h"