|
@@ -15,11 +15,9 @@ Signed-off-by: Daniel González Cabanelas <[email protected]>
|
|
|
drivers/rtc/rtc-rs5c372.c | 16 ++++++++++++++++
|
|
|
1 file changed, 16 insertions(+)
|
|
|
|
|
|
-diff --git a/drivers/rtc/rtc-rs5c372.c b/drivers/rtc/rtc-rs5c372.c
|
|
|
-index 94b778c6e..76775d66e 100644
|
|
|
--- a/drivers/rtc/rtc-rs5c372.c
|
|
|
+++ b/drivers/rtc/rtc-rs5c372.c
|
|
|
-@@ -654,6 +654,7 @@ static int rs5c372_probe(struct i2c_client *client,
|
|
|
+@@ -654,6 +654,7 @@ static int rs5c372_probe(struct i2c_clie
|
|
|
int err = 0;
|
|
|
int smbus_mode = 0;
|
|
|
struct rs5c372 *rs5c372;
|
|
@@ -27,7 +25,7 @@ index 94b778c6e..76775d66e 100644
|
|
|
|
|
|
dev_dbg(&client->dev, "%s\n", __func__);
|
|
|
|
|
|
-@@ -689,6 +690,12 @@ static int rs5c372_probe(struct i2c_client *client,
|
|
|
+@@ -689,6 +690,12 @@ static int rs5c372_probe(struct i2c_clie
|
|
|
else
|
|
|
rs5c372->type = id->driver_data;
|
|
|
|
|
@@ -40,7 +38,7 @@ index 94b778c6e..76775d66e 100644
|
|
|
/* we read registers 0x0f then 0x00-0x0f; skip the first one */
|
|
|
rs5c372->regs = &rs5c372->buf[1];
|
|
|
rs5c372->smbus = smbus_mode;
|
|
|
-@@ -722,6 +729,8 @@ static int rs5c372_probe(struct i2c_client *client,
|
|
|
+@@ -722,6 +729,8 @@ static int rs5c372_probe(struct i2c_clie
|
|
|
goto exit;
|
|
|
}
|
|
|
|
|
@@ -49,7 +47,7 @@ index 94b778c6e..76775d66e 100644
|
|
|
/* if the oscillator lost power and no other software (like
|
|
|
* the bootloader) set it up, do it here.
|
|
|
*
|
|
|
-@@ -748,6 +757,10 @@ static int rs5c372_probe(struct i2c_client *client,
|
|
|
+@@ -748,6 +757,10 @@ static int rs5c372_probe(struct i2c_clie
|
|
|
);
|
|
|
|
|
|
/* REVISIT use client->irq to register alarm irq ... */
|
|
@@ -60,7 +58,7 @@ index 94b778c6e..76775d66e 100644
|
|
|
rs5c372->rtc = devm_rtc_device_register(&client->dev,
|
|
|
rs5c372_driver.driver.name,
|
|
|
&rs5c372_rtc_ops, THIS_MODULE);
|
|
|
-@@ -761,6 +774,9 @@ static int rs5c372_probe(struct i2c_client *client,
|
|
|
+@@ -761,6 +774,9 @@ static int rs5c372_probe(struct i2c_clie
|
|
|
if (err)
|
|
|
goto exit;
|
|
|
|