diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 15:19:50 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-18 11:57:07 +0200 |
commit | a177c3ac25df166dbdde03e09ba8cb3065742807 (patch) | |
tree | 5925bf1e40125578f12d5f9bb4f0f6e1a3d84481 /drivers/rtc/rtc-s3c.c | |
parent | drivers/pwm: don't check resource with devm_ioremap_resource (diff) | |
download | linux-a177c3ac25df166dbdde03e09ba8cb3065742807.tar.xz linux-a177c3ac25df166dbdde03e09ba8cb3065742807.zip |
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-s3c.c')
-rw-r--r-- | drivers/rtc/rtc-s3c.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index 14040b22888d..0b495e8b8e66 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c @@ -477,11 +477,6 @@ static int s3c_rtc_probe(struct platform_device *pdev) /* get the memory region */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (res == NULL) { - dev_err(&pdev->dev, "failed to get memory region resource\n"); - return -ENOENT; - } - s3c_rtc_base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(s3c_rtc_base)) return PTR_ERR(s3c_rtc_base); |