diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-06-02 14:13:21 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-06-03 10:55:26 +0200 |
commit | 4b9e2a0c0591d2789a43414b8299466800873aea (patch) | |
tree | eb8bf7fdc06918796bbf0c1b163aaf0be3e4d054 /drivers | |
parent | f09e706992bd031f0d94b77e40074e7fea5c89a9 (diff) | |
download | linux-4b9e2a0c0591d2789a43414b8299466800873aea.tar.bz2 |
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')
-rw-r--r-- | drivers/rtc/rtc-ds1307.c | 2 |
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); |