mirror of
https://github.com/adulau/aha.git
synced 2025-01-02 14:13:18 +00:00
ARM: 5685/1: Make MMCI driver compile without gpiolib
The recent addition of optional gpiolib support to check if a card was inserted or write protected was really not optional. It needs this ifdef to become optional so that U300 compiles, for example. Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
8900144692
commit
7064d2092d
1 changed files with 2 additions and 0 deletions
|
@ -619,6 +619,7 @@ static int __devinit mmci_probe(struct amba_device *dev, struct amba_id *id)
|
||||||
writel(0, host->base + MMCIMASK1);
|
writel(0, host->base + MMCIMASK1);
|
||||||
writel(0xfff, host->base + MMCICLEAR);
|
writel(0xfff, host->base + MMCICLEAR);
|
||||||
|
|
||||||
|
#ifdef CONFIG_GPIOLIB
|
||||||
if (gpio_is_valid(plat->gpio_cd)) {
|
if (gpio_is_valid(plat->gpio_cd)) {
|
||||||
ret = gpio_request(plat->gpio_cd, DRIVER_NAME " (cd)");
|
ret = gpio_request(plat->gpio_cd, DRIVER_NAME " (cd)");
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
|
@ -637,6 +638,7 @@ static int __devinit mmci_probe(struct amba_device *dev, struct amba_id *id)
|
||||||
else if (ret != -ENOSYS)
|
else if (ret != -ENOSYS)
|
||||||
goto err_gpio_wp;
|
goto err_gpio_wp;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ret = request_irq(dev->irq[0], mmci_irq, IRQF_SHARED, DRIVER_NAME " (cmd)", host);
|
ret = request_irq(dev->irq[0], mmci_irq, IRQF_SHARED, DRIVER_NAME " (cmd)", host);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Reference in a new issue