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

rtc: x1205: Add DT probing support

This makes it possible to probe the X1205 RTC from the
device tree. This is needed when adding device tree boot
support for the IXP4xx-based NSLU2 which has this RTC.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Linus Walleij and committed by
Alexandre Belloni
6875404f 87b7cbbc

+7
+7
drivers/rtc/rtc-x1205.c
··· 673 673 }; 674 674 MODULE_DEVICE_TABLE(i2c, x1205_id); 675 675 676 + static const struct of_device_id x1205_dt_ids[] = { 677 + { .compatible = "xircom,x1205", }, 678 + {}, 679 + }; 680 + MODULE_DEVICE_TABLE(of, x1205_dt_ids); 681 + 676 682 static struct i2c_driver x1205_driver = { 677 683 .driver = { 678 684 .name = "rtc-x1205", 685 + .of_match_table = x1205_dt_ids, 679 686 }, 680 687 .probe = x1205_probe, 681 688 .remove = x1205_remove,