diff options
author | Curtis Klein <curtis.klein@hpe.com> | 2024-02-21 17:11:29 -0800 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2024-02-29 22:28:19 +0100 |
commit | 3100fd1aa8e4b7fdb3f352614e3b55bd44c07efe (patch) | |
tree | 9b291211e7c99c9c546b25704ced4d6449a5039f /drivers/rtc | |
parent | 16816e6a36939d2a3f70b80ac5a0ba0a8a155523 (diff) | |
download | linux-3100fd1aa8e4b7fdb3f352614e3b55bd44c07efe.tar.gz linux-3100fd1aa8e4b7fdb3f352614e3b55bd44c07efe.tar.bz2 linux-3100fd1aa8e4b7fdb3f352614e3b55bd44c07efe.zip |
rtc: m41t80: Use the unified property API get the wakeup-source property
This allows both ACPI and Device Tree systems to specify the m41t80 as a
wakeup-source.
Signed-off-by: Curtis Klein <curtis.klein@hpe.com>
Link: https://lore.kernel.org/r/20240222011129.79241-1-curtis.klein@hpe.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-m41t80.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index 866489ad56d6..0013bff0447d 100644 --- a/drivers/rtc/rtc-m41t80.c +++ b/drivers/rtc/rtc-m41t80.c @@ -909,10 +909,7 @@ static int m41t80_probe(struct i2c_client *client) if (IS_ERR(m41t80_data->rtc)) return PTR_ERR(m41t80_data->rtc); -#ifdef CONFIG_OF - wakeup_source = of_property_read_bool(client->dev.of_node, - "wakeup-source"); -#endif + wakeup_source = device_property_read_bool(&client->dev, "wakeup-source"); if (client->irq > 0) { unsigned long irqflags = IRQF_TRIGGER_LOW; |