提交 7cc01f63 编写于 作者: M Michael Auchter 提交者: Linus Walleij

gpio: bt8xx: fix release of managed resources

These resources are managed by devres, and should not be explicitly
released.
Signed-off-by: NMichael Auchter <a@phire.org>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 1b11a9b9
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册