summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2017-05-25 08:25:19 +0200
committerJan Kiszka <jan.kiszka@siemens.com>2017-07-03 08:23:09 +0200
commita39f2fe7165647c2cd7bdbebb3d04061035e520f (patch)
treeb715340af6479bad456066e92c30a08f2c2c78e4 /drivers/gpio
parentserial: uapi: Add support for bus termination (diff)
downloadlinux-a39f2fe7165647c2cd7bdbebb3d04061035e520f.tar.xz
linux-a39f2fe7165647c2cd7bdbebb3d04061035e520f.zip
gpio-exar/8250-exar: Do not even instantiate a GPIO device for Commtech cards
Commtech adapters need the MPIOs for internal purposes, and the gpio-exar driver already refused to pick them up. But there is actually no point in even creating the underlying platform device. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-exar.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-exar.c b/drivers/gpio/gpio-exar.c
index 4b46273ca545..139d54008ad0 100644
--- a/drivers/gpio/gpio-exar.c
+++ b/drivers/gpio/gpio-exar.c
@@ -124,9 +124,6 @@ static int gpio_exar_probe(struct platform_device *pdev)
void __iomem *p;
int index, ret;
- if (pcidev->vendor != PCI_VENDOR_ID_EXAR)
- return -ENODEV;
-
/*
* Map the pci device to get the register addresses.
* We will need to read and write those registers to control