aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vme/devices/vme_pio2_gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/vme/devices/vme_pio2_gpio.c')
-rw-r--r--drivers/staging/vme/devices/vme_pio2_gpio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/vme/devices/vme_pio2_gpio.c b/drivers/staging/vme/devices/vme_pio2_gpio.c
index d8a118d39566..c64776f71809 100644
--- a/drivers/staging/vme/devices/vme_pio2_gpio.c
+++ b/drivers/staging/vme/devices/vme_pio2_gpio.c
@@ -221,9 +221,7 @@ void pio2_gpio_exit(struct pio2_card *card)
{
const char *label = card->gc.label;
- if (gpiochip_remove(&(card->gc)))
- dev_err(&card->vdev->dev, "Failed to remove GPIO\n");
-
+ gpiochip_remove(&(card->gc));
kfree(label);
}