Skip to content

Commit

Permalink
rtc: rtc-ds1302: Kill off unused variables.
Browse files Browse the repository at this point in the history
There were a few stray unused variables left over, kill them off.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Aug 20, 2009
1 parent 485f072 commit e0fa7e5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/rtc/rtc-ds1302.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
struct ds1302_rtc *rtc = dev_get_drvdata(dev);

tm->tm_sec = bcd2bin(ds1302_readbyte(RTC_ADDR_SEC));
tm->tm_min = bcd2bin(ds1302_readbyte(RTC_ADDR_MIN));
tm->tm_hour = bcd2bin(ds1302_readbyte(RTC_ADDR_HOUR));
Expand Down Expand Up @@ -169,7 +167,6 @@ static struct rtc_class_ops ds1302_rtc_ops = {
static int __init ds1302_rtc_probe(struct platform_device *pdev)
{
struct rtc_device *rtc;
int ret;

/* Reset */
set_dp(get_dp() & ~(RTC_RESET | RTC_IODATA | RTC_SCLK));
Expand Down

0 comments on commit e0fa7e5

Please sign in to comment.