rtc: m41t80: Use the unified property API get the wakeup-source property
[sfrench/cifs-2.6.git] / drivers / rtc / rtc-m41t80.c
index 866489ad56d67db1b5a69c4b9e7bc294b864c7f4..0013bff0447d5b8df1e5a801a69414184d0f84d8 100644 (file)
@@ -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;