diff options
Diffstat (limited to 'drivers/amba')
-rw-r--r-- | drivers/amba/tegra-ahb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/amba/tegra-ahb.c b/drivers/amba/tegra-ahb.c index 536c166f4253..ab92785f54dc 100644 --- a/drivers/amba/tegra-ahb.c +++ b/drivers/amba/tegra-ahb.c | |||
@@ -20,6 +20,7 @@ | |||
20 | * | 20 | * |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <linux/err.h> | ||
23 | #include <linux/kernel.h> | 24 | #include <linux/kernel.h> |
24 | #include <linux/module.h> | 25 | #include <linux/module.h> |
25 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
@@ -257,9 +258,9 @@ static int tegra_ahb_probe(struct platform_device *pdev) | |||
257 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 258 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
258 | if (!res) | 259 | if (!res) |
259 | return -ENODEV; | 260 | return -ENODEV; |
260 | ahb->regs = devm_request_and_ioremap(&pdev->dev, res); | 261 | ahb->regs = devm_ioremap_resource(&pdev->dev, res); |
261 | if (!ahb->regs) | 262 | if (IS_ERR(ahb->regs)) |
262 | return -EBUSY; | 263 | return PTR_ERR(ahb->regs); |
263 | 264 | ||
264 | ahb->dev = &pdev->dev; | 265 | ahb->dev = &pdev->dev; |
265 | platform_set_drvdata(pdev, ahb); | 266 | platform_set_drvdata(pdev, ahb); |