Commit 6875404f authored by Linus Walleij's avatar Linus Walleij Committed by Alexandre Belloni

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: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 87b7cbbc
...@@ -673,9 +673,16 @@ static const struct i2c_device_id x1205_id[] = { ...@@ -673,9 +673,16 @@ static const struct i2c_device_id x1205_id[] = {
}; };
MODULE_DEVICE_TABLE(i2c, x1205_id); MODULE_DEVICE_TABLE(i2c, x1205_id);
static const struct of_device_id x1205_dt_ids[] = {
{ .compatible = "xircom,x1205", },
{},
};
MODULE_DEVICE_TABLE(of, x1205_dt_ids);
static struct i2c_driver x1205_driver = { static struct i2c_driver x1205_driver = {
.driver = { .driver = {
.name = "rtc-x1205", .name = "rtc-x1205",
.of_match_table = x1205_dt_ids,
}, },
.probe = x1205_probe, .probe = x1205_probe,
.remove = x1205_remove, .remove = x1205_remove,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment