0072-Update-ds1307-driver-for-device-tree-support.patch 737 B

123456789101112131415161718192021222324252627
  1. From 1e1cdd39b3ed1a3488e796367f6e339dbe2ecaaa Mon Sep 17 00:00:00 2001
  2. From: Ryan Coe <bluemrp9@gmail.com>
  3. Date: Sat, 31 Jan 2015 18:25:49 -0700
  4. Subject: [PATCH 072/381] Update ds1307 driver for device-tree support
  5. Signed-off-by: Ryan Coe <bluemrp9@gmail.com>
  6. ---
  7. drivers/rtc/rtc-ds1307.c | 8 ++++++++
  8. 1 file changed, 8 insertions(+)
  9. --- a/drivers/rtc/rtc-ds1307.c
  10. +++ b/drivers/rtc/rtc-ds1307.c
  11. @@ -1207,6 +1207,14 @@ static int ds1307_remove(struct i2c_clie
  12. return 0;
  13. }
  14. +#ifdef CONFIG_OF
  15. +static const struct of_device_id ds1307_of_match[] = {
  16. + { .compatible = "maxim,ds1307" },
  17. + { }
  18. +};
  19. +MODULE_DEVICE_TABLE(of, ds1307_of_match);
  20. +#endif
  21. +
  22. static struct i2c_driver ds1307_driver = {
  23. .driver = {
  24. .name = "rtc-ds1307",