Commit e0fa7e58 authored by Paul Mundt's avatar Paul Mundt

rtc: rtc-ds1302: Kill off unused variables.

There were a few stray unused variables left over, kill them off.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 485f0720
...@@ -97,8 +97,6 @@ static void ds1302_writebyte(unsigned int addr, unsigned int val) ...@@ -97,8 +97,6 @@ static void ds1302_writebyte(unsigned int addr, unsigned int val)
static int ds1302_rtc_read_time(struct device *dev, struct rtc_time *tm) static int ds1302_rtc_read_time(struct device *dev, struct rtc_time *tm)
{ {
struct ds1302_rtc *rtc = dev_get_drvdata(dev);
tm->tm_sec = bcd2bin(ds1302_readbyte(RTC_ADDR_SEC)); tm->tm_sec = bcd2bin(ds1302_readbyte(RTC_ADDR_SEC));
tm->tm_min = bcd2bin(ds1302_readbyte(RTC_ADDR_MIN)); tm->tm_min = bcd2bin(ds1302_readbyte(RTC_ADDR_MIN));
tm->tm_hour = bcd2bin(ds1302_readbyte(RTC_ADDR_HOUR)); tm->tm_hour = bcd2bin(ds1302_readbyte(RTC_ADDR_HOUR));
...@@ -169,7 +167,6 @@ static struct rtc_class_ops ds1302_rtc_ops = { ...@@ -169,7 +167,6 @@ static struct rtc_class_ops ds1302_rtc_ops = {
static int __init ds1302_rtc_probe(struct platform_device *pdev) static int __init ds1302_rtc_probe(struct platform_device *pdev)
{ {
struct rtc_device *rtc; struct rtc_device *rtc;
int ret;
/* Reset */ /* Reset */
set_dp(get_dp() & ~(RTC_RESET | RTC_IODATA | RTC_SCLK)); set_dp(get_dp() & ~(RTC_RESET | RTC_IODATA | RTC_SCLK));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment