rtc: ds1307: avoid using rtc-name
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 2 Jun 2017 12:13:21 +0000 (14:13 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 3 Jun 2017 08:55:26 +0000 (10:55 +0200)
ds1307->rtc->name is a copy of ds1307->name, use it instead.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-ds1307.c

index a264938500afd7b31243dc618a14eaa847977ddb..16ace2fb0c0a85237f7cd5e6f4577b9475972b6f 100644 (file)
@@ -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);