Skip to contentSkip to conversation

gpio: bt8xx: fix release of managed resources

PATCH In review Michael Auchter 2 participants 2 messages Aug 27, 2014 – Aug 29, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: bt8xx: fix release of managed resources

These resources are managed by devres, and should not be explicitly released.

---
 drivers/gpio/gpio-bt8xx.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpio/gpio-bt8xx.c +0 -3
index 6557147..7e4c43c 100644
@@ -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);
 }
 
Signature · 1 line
1.8.5.5