aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-12-21 09:43:24 -0200
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2018-01-12 00:20:40 +0100
commita9c705a8bd52d8a5205cc779d6e64af4321a9fa8 (patch)
tree32ed8523c71bfee3aabb2651b978de8bfdf5e78e /drivers/rtc
parentrtc: add mxc driver for i.MX53 SRTC (diff)
downloadlinux-dev-a9c705a8bd52d8a5205cc779d6e64af4321a9fa8.tar.xz
linux-dev-a9c705a8bd52d8a5205cc779d6e64af4321a9fa8.zip
rtc: mxc_v2: Remove unnecessary platform_get_resource() error check
devm_ioremap_resource() already checks if the resource is NULL, so remove the unnecessary platform_get_resource() error check. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-mxc_v2.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-mxc_v2.c b/drivers/rtc/rtc-mxc_v2.c
index b637095b0716..eecc0cf9ee95 100644
--- a/drivers/rtc/rtc-mxc_v2.c
+++ b/drivers/rtc/rtc-mxc_v2.c
@@ -296,9 +296,6 @@ static int mxc_rtc_probe(struct platform_device *pdev)
return -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res)
- return -ENODEV;
-
pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(pdata->ioaddr))
return PTR_ERR(pdata->ioaddr);