Commit 3100fd1a authored by Curtis Klein's avatar Curtis Klein Committed by Alexandre Belloni

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: default avatarCurtis Klein <curtis.klein@hpe.com>
Link: https://lore.kernel.org/r/20240222011129.79241-1-curtis.klein@hpe.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 16816e6a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment