diff options
Diffstat (limited to 'drivers/spi/spi-tegra20-sflash.c')
-rw-r--r-- | drivers/spi/spi-tegra20-sflash.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/spi/spi-tegra20-sflash.c b/drivers/spi/spi-tegra20-sflash.c index 9a42c158e245..8a61b27a9f2d 100644 --- a/drivers/spi/spi-tegra20-sflash.c +++ b/drivers/spi/spi-tegra20-sflash.c | |||
@@ -516,11 +516,9 @@ static int tegra_sflash_probe(struct platform_device *pdev) | |||
516 | ret = -ENODEV; | 516 | ret = -ENODEV; |
517 | goto exit_free_master; | 517 | goto exit_free_master; |
518 | } | 518 | } |
519 | tsd->base = devm_request_and_ioremap(&pdev->dev, r); | 519 | tsd->base = devm_ioremap_resource(&pdev->dev, r); |
520 | if (!tsd->base) { | 520 | if (IS_ERR(tsd->base)) { |
521 | dev_err(&pdev->dev, | 521 | ret = PTR_ERR(tsd->base); |
522 | "Cannot request memregion/iomap dma address\n"); | ||
523 | ret = -EADDRNOTAVAIL; | ||
524 | goto exit_free_master; | 522 | goto exit_free_master; |
525 | } | 523 | } |
526 | 524 | ||