diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-10-27 07:09:47 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-10-27 07:11:50 -0400 |
commit | 3ba2c76a9d3a339cd1b77e88915680ae2e9ac2da (patch) | |
tree | bf89b0563b16d9835815df0c0e72c4068cd5aa25 | |
parent | 47dd47292828a552d62d0e68b7cd6bdc99d9e0aa (diff) |
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>
-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) | |||
216 | return res; | 216 | return res; |
217 | } | 217 | } |
218 | 218 | ||
219 | static const struct of_device_id ds1390_of_match[] = { | ||
220 | { .compatible = "dallas,ds1390" }, | ||
221 | {} | ||
222 | }; | ||
223 | MODULE_DEVICE_TABLE(of, ds1390_of_match); | ||
224 | |||
219 | static struct spi_driver ds1390_driver = { | 225 | static struct spi_driver ds1390_driver = { |
220 | .driver = { | 226 | .driver = { |
221 | .name = "rtc-ds1390", | 227 | .name = "rtc-ds1390", |
228 | .of_match_table = of_match_ptr(ds1390_of_match), | ||
222 | }, | 229 | }, |
223 | .probe = ds1390_probe, | 230 | .probe = ds1390_probe, |
224 | }; | 231 | }; |