Message ID | 1353874625-14754-3-git-send-email-tremyfr@yahoo.fr (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Dear Philippe Reynes, On Sun, 25 Nov 2012 21:17:03 +0100, Philippe Reynes wrote: > Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr> > --- > drivers/rtc/rtc-ds1374.c | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/drivers/rtc/rtc-ds1374.c b/drivers/rtc/rtc-ds1374.c > index 9663160..174c532 100644 > --- a/drivers/rtc/rtc-ds1374.c > +++ b/drivers/rtc/rtc-ds1374.c > @@ -49,6 +49,14 @@ static const struct i2c_device_id ds1374_id[] = { > }; > MODULE_DEVICE_TABLE(i2c, ds1374_id); > > +#ifdef CONFIG_OF > +static const struct of_device_id ds1374_of_match[] __devinitconst = { > + { .compatible = "dallas,ds1374" }, > + {} > +}; > +MODULE_DEVICE_TABLE(of, ds1374_of_match); > +#endif > + Don't we need a Device Tree binding documentation in Documentation/devicetree/bindings/rtc/ ? Thomas
diff --git a/drivers/rtc/rtc-ds1374.c b/drivers/rtc/rtc-ds1374.c index 9663160..174c532 100644 --- a/drivers/rtc/rtc-ds1374.c +++ b/drivers/rtc/rtc-ds1374.c @@ -49,6 +49,14 @@ static const struct i2c_device_id ds1374_id[] = { }; MODULE_DEVICE_TABLE(i2c, ds1374_id); +#ifdef CONFIG_OF +static const struct of_device_id ds1374_of_match[] __devinitconst = { + { .compatible = "dallas,ds1374" }, + {} +}; +MODULE_DEVICE_TABLE(of, ds1374_of_match); +#endif + struct ds1374 { struct i2c_client *client; struct rtc_device *rtc;
Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr> --- drivers/rtc/rtc-ds1374.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)