aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/lpc32xx_mlc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/lpc32xx_mlc.c')
-rw-r--r--drivers/mtd/nand/lpc32xx_mlc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/mtd/nand/lpc32xx_mlc.c b/drivers/mtd/nand/lpc32xx_mlc.c
index f182befa7360..0ca22ae9135c 100644
--- a/drivers/mtd/nand/lpc32xx_mlc.c
+++ b/drivers/mtd/nand/lpc32xx_mlc.c
@@ -677,11 +677,10 @@ static int lpc32xx_nand_probe(struct platform_device *pdev)
677 return -ENXIO; 677 return -ENXIO;
678 } 678 }
679 679
680 host->io_base = devm_request_and_ioremap(&pdev->dev, rc); 680 host->io_base = devm_ioremap_resource(&pdev->dev, rc);
681 if (host->io_base == NULL) { 681 if (IS_ERR(host->io_base))
682 dev_err(&pdev->dev, "ioremap failed\n"); 682 return PTR_ERR(host->io_base);
683 return -EIO; 683
684 }
685 host->io_base_phy = rc->start; 684 host->io_base_phy = rc->start;
686 685
687 mtd = &host->mtd; 686 mtd = &host->mtd;