mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Acked-by: Hans Ulli Kroll <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
This commit is contained in:
parent
4042a1475e
commit
45b4c85b71
1 changed files with 1 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue