X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Frtc%2Frtc-max6902.c;h=d9417072807506771280912c887d5c8c9da27877;hb=cde49b058474ab3f7ff830283e5b538e8fbeefe5;hp=9eeef964663ac84597f7d1ab1d754e1df302063c;hpb=59458f40e25915a355d8b1d701425fe9f4f9ea23;p=pandora-kernel.git diff --git a/drivers/rtc/rtc-max6902.c b/drivers/rtc/rtc-max6902.c index 9eeef964663a..d94170728075 100644 --- a/drivers/rtc/rtc-max6902.c +++ b/drivers/rtc/rtc-max6902.c @@ -1,4 +1,4 @@ -/* drivers/char/max6902.c +/* drivers/rtc/rtc-max6902.c * * Copyright (C) 2006 8D Technologies inc. * Copyright (C) 2004 Compulab Ltd. @@ -19,7 +19,6 @@ * - Initial driver creation. */ -#include #include #include @@ -137,7 +136,7 @@ static int max6902_get_datetime(struct device *dev, struct rtc_time *dt) dt->tm_min = BCD2BIN(chip->buf[2]); dt->tm_hour = BCD2BIN(chip->buf[3]); dt->tm_mday = BCD2BIN(chip->buf[4]); - dt->tm_mon = BCD2BIN(chip->buf[5] - 1); + dt->tm_mon = BCD2BIN(chip->buf[5]) - 1; dt->tm_wday = BCD2BIN(chip->buf[6]); dt->tm_year = BCD2BIN(chip->buf[7]);