提交 da1cfe1a 编写于 作者: J Jiri Slaby 提交者: Linus Torvalds

Char: sx, remove bogus iomap

readl/writel are not expected to accept iomap return value. Replace
bogus mapping by standard ioremap.
Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
Cc: <R.E.Wolff@BitWizard.nl>
Acked-by: NAlan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 8c9398d1
...@@ -2504,7 +2504,7 @@ static void __devexit sx_remove_card(struct sx_board *board, ...@@ -2504,7 +2504,7 @@ static void __devexit sx_remove_card(struct sx_board *board,
del_timer(&board->timer); del_timer(&board->timer);
if (pdev) { if (pdev) {
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
pci_iounmap(pdev, board->base2); iounmap(board->base2);
pci_release_region(pdev, IS_CF_BOARD(board) ? 3 : 2); pci_release_region(pdev, IS_CF_BOARD(board) ? 3 : 2);
#endif #endif
} else { } else {
...@@ -2677,7 +2677,7 @@ static int __devinit sx_pci_probe(struct pci_dev *pdev, ...@@ -2677,7 +2677,7 @@ static int __devinit sx_pci_probe(struct pci_dev *pdev,
} }
board->hw_base = pci_resource_start(pdev, reg); board->hw_base = pci_resource_start(pdev, reg);
board->base2 = board->base2 =
board->base = pci_iomap(pdev, reg, WINDOW_LEN(board)); board->base = ioremap_nocache(board->hw_base, WINDOW_LEN(board));
if (!board->base) { if (!board->base) {
dev_err(&pdev->dev, "ioremap failed\n"); dev_err(&pdev->dev, "ioremap failed\n");
goto err_reg; goto err_reg;
...@@ -2703,7 +2703,7 @@ static int __devinit sx_pci_probe(struct pci_dev *pdev, ...@@ -2703,7 +2703,7 @@ static int __devinit sx_pci_probe(struct pci_dev *pdev,
return 0; return 0;
err_unmap: err_unmap:
pci_iounmap(pdev, board->base2); iounmap(board->base2);
err_reg: err_reg:
pci_release_region(pdev, reg); pci_release_region(pdev, reg);
err_flag: err_flag:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册