Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cc01f63 authored by Michael Auchter's avatar Michael Auchter Committed by Linus Walleij
Browse files

gpio: bt8xx: fix release of managed resources



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

Signed-off-by: default avatarMichael Auchter <a@phire.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 1b11a9b9
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);
}