i2c/m41t00: Do not forget to write year

m41t00.c forgets to set the year field in set_rtc_time; fix that.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Acked-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>

authored by Philippe De Muyter and committed by Jean Delvare 81ffbc04 3269bb63

+1
+1
drivers/i2c/chips/m41t00.c
··· 209 209 buf[m41t00_chip->hour] = (buf[m41t00_chip->hour] & ~0x3f) | (hour& 0x3f); 210 210 buf[m41t00_chip->day] = (buf[m41t00_chip->day] & ~0x3f) | (day & 0x3f); 211 211 buf[m41t00_chip->mon] = (buf[m41t00_chip->mon] & ~0x1f) | (mon & 0x1f); 212 + buf[m41t00_chip->year] = year; 212 213 213 214 if (i2c_master_send(save_client, wbuf, 9) < 0) 214 215 dev_err(&save_client->dev, "m41t00_set: Write error\n");