From 7cc01f630a967b25d9de200767b42177e4fa0bac Mon Sep 17 00:00:00 2001
From: Michael Auchter
Date: Wed, 27 Aug 2014 01:39:33 +0000
Subject: gpio: bt8xx: fix release of managed resources
These resources are managed by devres, and should not be explicitly
released.
Signed-off-by: Michael Auchter
Signed-off-by: Linus Walleij
---
drivers/gpio/gpio-bt8xx.c | 3 ---
1 file changed, 3 deletions(-)
(limited to 'drivers/gpio/gpio-bt8xx.c')
diff --git a/drivers/gpio/gpio-bt8xx.c b/drivers/gpio/gpio-bt8xx.c
index 6557147d9331..7e4c43c18960 100644
--- a/drivers/gpio/gpio-bt8xx.c
+++ b/drivers/gpio/gpio-bt8xx.c
@@ -241,9 +241,6 @@ static void bt8xxgpio_remove(struct pci_dev *pdev)
bgwrite(~0x0, BT848_INT_STAT);
bgwrite(0x0, BT848_GPIO_OUT_EN);
- iounmap(bg->mmio);
- release_mem_region(pci_resource_start(pdev, 0),
- pci_resource_len(pdev, 0));
pci_disable_device(pdev);
}
--
cgit v1.2.3