diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 13:19:50 (GMT) |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-18 09:57:07 (GMT) |
commit | a177c3ac25df166dbdde03e09ba8cb3065742807 (patch) | |
tree | 5925bf1e40125578f12d5f9bb4f0f6e1a3d84481 /drivers/rtc/rtc-tegra.c | |
parent | 362e9cd2f54e3c72a37ff8e3319366554e48c555 (diff) | |
download | linux-a177c3ac25df166dbdde03e09ba8cb3065742807.tar.xz |
drivers/rtc: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/rtc/rtc-tegra.c')
-rw-r--r-- | drivers/rtc/rtc-tegra.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c index a34315d..76af92a 100644 --- a/drivers/rtc/rtc-tegra.c +++ b/drivers/rtc/rtc-tegra.c @@ -322,12 +322,6 @@ static int __init tegra_rtc_probe(struct platform_device *pdev) return -ENOMEM; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(&pdev->dev, - "Unable to allocate resources for device.\n"); - return -EBUSY; - } - info->rtc_base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(info->rtc_base)) return PTR_ERR(info->rtc_base); |