summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorkbuild test robot <fengguang.wu@intel.com>2015-06-13 15:16:56 +0200
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-06-25 01:13:45 +0200
commit45b4c85b71bbe691329983c9bf9877392700edc3 (patch)
tree9a6409c241b2f7f9e811303594bd00fde8034d79 /drivers/rtc
parentrtc: mv: correct 24 hour error message (diff)
downloadlinux-45b4c85b71bbe691329983c9bf9877392700edc3.tar.xz
linux-45b4c85b71bbe691329983c9bf9877392700edc3.zip
rtc: gemini: fix cocci warnings
Use resource_size function on resource object instead of explicit computation. No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Acked-by: Hans Ulli Kroll <ulli.kroll@googlemail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-gemini.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-gemini.c b/drivers/rtc/rtc-gemini.c
index 5fc17df27c99..35f4486738fc 100644
--- a/drivers/rtc/rtc-gemini.c
+++ b/drivers/rtc/rtc-gemini.c
@@ -139,7 +139,7 @@ static int gemini_rtc_probe(struct platform_device *pdev)
return -ENODEV;
rtc->rtc_base = devm_ioremap(dev, res->start,
- res->end - res->start + 1);
+ resource_size(res));
ret = devm_request_irq(dev, rtc->rtc_irq, gemini_rtc_interrupt,
IRQF_SHARED, pdev->name, dev);
@@ -167,7 +167,6 @@ static int gemini_rtc_remove(struct platform_device *pdev)
static struct platform_driver gemini_rtc_driver = {
.driver = {
.name = DRV_NAME,
- .owner = THIS_MODULE,
},
.probe = gemini_rtc_probe,
.remove = gemini_rtc_remove,