From: Alexandre Belloni Date: Mon, 18 Oct 2021 15:36:48 +0000 (+0200) Subject: rtc: pcf8523: remove unecessary ifdefery X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7c176119aefd64a099d06ba33b4730f643b3a890;p=linux.git rtc: pcf8523: remove unecessary ifdefery If CONFIG_OF is not defined, of_property_read_bool will return false which is our default value Signed-off-by: Alexandre Belloni Link: https://lore.kernel.org/r/20211018153651.82069-3-alexandre.belloni@bootlin.com --- diff --git a/drivers/rtc/rtc-pcf8523.c b/drivers/rtc/rtc-pcf8523.c index 103557f48409f..79a571db803ba 100644 --- a/drivers/rtc/rtc-pcf8523.c +++ b/drivers/rtc/rtc-pcf8523.c @@ -376,9 +376,7 @@ static int pcf8523_probe(struct i2c_client *client, dev_pm_set_wake_irq(&client->dev, client->irq); } -#ifdef CONFIG_OF wakeup_source = of_property_read_bool(client->dev.of_node, "wakeup-source"); -#endif if (client->irq > 0 || wakeup_source) device_init_wakeup(&client->dev, true);