mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 00:34:10 +08:00
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
This commit is contained in:
parent
7c176119ae
commit
ebf48cbe32
@ -389,19 +389,17 @@ static const struct i2c_device_id pcf8523_id[] = {
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, pcf8523_id);
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static const struct of_device_id pcf8523_of_match[] = {
|
||||
{ .compatible = "nxp,pcf8523" },
|
||||
{ .compatible = "microcrystal,rv8523" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, pcf8523_of_match);
|
||||
#endif
|
||||
|
||||
static struct i2c_driver pcf8523_driver = {
|
||||
.driver = {
|
||||
.name = "rtc-pcf8523",
|
||||
.of_match_table = of_match_ptr(pcf8523_of_match),
|
||||
.of_match_table = pcf8523_of_match,
|
||||
},
|
||||
.probe = pcf8523_probe,
|
||||
.id_table = pcf8523_id,
|
||||
|
Loading…
Reference in New Issue
Block a user