Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211018153651.82069-3-alexandre.belloni@bootlin.com

-2
-2
drivers/rtc/rtc-pcf8523.c
··· 376 376 dev_pm_set_wake_irq(&client->dev, client->irq); 377 377 } 378 378 379 - #ifdef CONFIG_OF 380 379 wakeup_source = of_property_read_bool(client->dev.of_node, "wakeup-source"); 381 - #endif 382 380 if (client->irq > 0 || wakeup_source) 383 381 device_init_wakeup(&client->dev, true); 384 382