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

rtc: pcf8523: allow usage on ACPI platforms

Always provide an OF table to ensure ACPI platforms can also use this
driver.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211018153651.82069-4-alexandre.belloni@bootlin.com

+1 -3
+1 -3
drivers/rtc/rtc-pcf8523.c
··· 389 389 }; 390 390 MODULE_DEVICE_TABLE(i2c, pcf8523_id); 391 391 392 - #ifdef CONFIG_OF 393 392 static const struct of_device_id pcf8523_of_match[] = { 394 393 { .compatible = "nxp,pcf8523" }, 395 394 { .compatible = "microcrystal,rv8523" }, 396 395 { } 397 396 }; 398 397 MODULE_DEVICE_TABLE(of, pcf8523_of_match); 399 - #endif 400 398 401 399 static struct i2c_driver pcf8523_driver = { 402 400 .driver = { 403 401 .name = "rtc-pcf8523", 404 - .of_match_table = of_match_ptr(pcf8523_of_match), 402 + .of_match_table = pcf8523_of_match, 405 403 }, 406 404 .probe = pcf8523_probe, 407 405 .id_table = pcf8523_id,