mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
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>
This commit is contained in:
parent
f09e706992
commit
4b9e2a0c05
1 changed files with 1 additions and 1 deletions
|
@ -1567,7 +1567,7 @@ static int ds1307_probe(struct i2c_client *client,
|
||||||
err = devm_request_threaded_irq(ds1307->dev,
|
err = devm_request_threaded_irq(ds1307->dev,
|
||||||
ds1307->irq, NULL, irq_handler,
|
ds1307->irq, NULL, irq_handler,
|
||||||
IRQF_SHARED | IRQF_ONESHOT,
|
IRQF_SHARED | IRQF_ONESHOT,
|
||||||
ds1307->rtc->name, ds1307);
|
ds1307->name, ds1307);
|
||||||
if (err) {
|
if (err) {
|
||||||
client->irq = 0;
|
client->irq = 0;
|
||||||
device_set_wakeup_capable(ds1307->dev, false);
|
device_set_wakeup_capable(ds1307->dev, false);
|
||||||
|
|
Loading…
Reference in a new issue