|
@@ -43,7 +43,7 @@ static int ds1302_rtc_set_time(struct device *dev, struct rtc_time *time)
|
|
{
|
|
{
|
|
struct spi_device *spi = dev_get_drvdata(dev);
|
|
struct spi_device *spi = dev_get_drvdata(dev);
|
|
u8 buf[1 + RTC_CLCK_LEN];
|
|
u8 buf[1 + RTC_CLCK_LEN];
|
|
- u8 *bp = buf;
|
|
|
|
|
|
+ u8 *bp;
|
|
int status;
|
|
int status;
|
|
|
|
|
|
/* Enable writing */
|
|
/* Enable writing */
|
|
@@ -112,7 +112,7 @@ static int ds1302_probe(struct spi_device *spi)
|
|
struct rtc_device *rtc;
|
|
struct rtc_device *rtc;
|
|
u8 addr;
|
|
u8 addr;
|
|
u8 buf[4];
|
|
u8 buf[4];
|
|
- u8 *bp = buf;
|
|
|
|
|
|
+ u8 *bp;
|
|
int status;
|
|
int status;
|
|
|
|
|
|
/* Sanity check board setup data. This may be hooked up
|
|
/* Sanity check board setup data. This may be hooked up
|