Browse Source

gpio: bt8xx: fix release of managed resources

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

Signed-off-by: Michael Auchter <a@phire.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Michael Auchter 11 năm trước cách đây
mục cha
commit
7cc01f630a
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  1. 0 3
      drivers/gpio/gpio-bt8xx.c

+ 0 - 3
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);
 }