Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michael Auchter and committed by
Linus Walleij
7cc01f63 1b11a9b9

-3
-3
drivers/gpio/gpio-bt8xx.c
··· 241 241 bgwrite(~0x0, BT848_INT_STAT); 242 242 bgwrite(0x0, BT848_GPIO_OUT_EN); 243 243 244 - iounmap(bg->mmio); 245 - release_mem_region(pci_resource_start(pdev, 0), 246 - pci_resource_len(pdev, 0)); 247 244 pci_disable_device(pdev); 248 245 } 249 246