diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-10-27 13:09:47 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-10-27 13:11:50 +0200 |
commit | 3ba2c76a9d3a339cd1b77e88915680ae2e9ac2da (patch) | |
tree | bf89b0563b16d9835815df0c0e72c4068cd5aa25 /drivers/rtc | |
parent | rtc: ds1307: add OF and ACPI entries for Epson RX8130 (diff) | |
download | linux-3ba2c76a9d3a339cd1b77e88915680ae2e9ac2da.tar.xz linux-3ba2c76a9d3a339cd1b77e88915680ae2e9ac2da.zip |
rtc: ds1390: Add OF device ID table
The driver doesn't have a struct of_device_id table but supported devices
are registered via Device Trees. Worse, the compatible is documented but
doesn't currently match the driver.
Add the proper compatible to the driver.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-ds1390.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c index aa0d2c6f1edc..4d5b007d7fc6 100644 --- a/drivers/rtc/rtc-ds1390.c +++ b/drivers/rtc/rtc-ds1390.c @@ -216,9 +216,16 @@ static int ds1390_probe(struct spi_device *spi) return res; } +static const struct of_device_id ds1390_of_match[] = { + { .compatible = "dallas,ds1390" }, + {} +}; +MODULE_DEVICE_TABLE(of, ds1390_of_match); + static struct spi_driver ds1390_driver = { .driver = { .name = "rtc-ds1390", + .of_match_table = of_match_ptr(ds1390_of_match), }, .probe = ds1390_probe, }; |