summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-06-02 14:13:21 +0200
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-06-03 10:55:26 +0200
commit4b9e2a0c0591d2789a43414b8299466800873aea (patch)
treeeb8bf7fdc06918796bbf0c1b163aaf0be3e4d054 /drivers/rtc
parentf09e706992bd031f0d94b77e40074e7fea5c89a9 (diff)
downloadlinux-4b9e2a0c0591d2789a43414b8299466800873aea.tar.gz
linux-4b9e2a0c0591d2789a43414b8299466800873aea.tar.bz2
linux-4b9e2a0c0591d2789a43414b8299466800873aea.zip
rtc: ds1307: avoid using rtc-name
ds1307->rtc->name is a copy of ds1307->name, use it instead. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-ds1307.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
index a264938500af..16ace2fb0c0a 100644
--- a/drivers/rtc/rtc-ds1307.c
+++ b/drivers/rtc/rtc-ds1307.c
@@ -1567,7 +1567,7 @@ read_rtc:
err = devm_request_threaded_irq(ds1307->dev,
ds1307->irq, NULL, irq_handler,
IRQF_SHARED | IRQF_ONESHOT,
- ds1307->rtc->name, ds1307);
+ ds1307->name, ds1307);
if (err) {
client->irq = 0;
device_set_wakeup_capable(ds1307->dev, false);