Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330112
b: refs/heads/master
c: a16e839
h: refs/heads/master
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Linus Torvalds committed Oct 5, 2012
1 parent 9f7a0a2 commit c278c9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c6a52a090ce7f680077ed42326e11cf17e713dc
refs/heads/master: a16e8393ac03cc24fd9b838f42823b4242ceac88
12 changes: 5 additions & 7 deletions trunk/drivers/rtc/rtc-spear.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static int spear_rtc_read_time(struct device *dev, struct rtc_time *tm)
static int spear_rtc_set_time(struct device *dev, struct rtc_time *tm)
{
struct spear_rtc_config *config = dev_get_drvdata(dev);
unsigned int time, date, err = 0;
unsigned int time, date;

if (tm2bcd(tm) < 0)
return -EINVAL;
Expand All @@ -247,11 +247,8 @@ static int spear_rtc_set_time(struct device *dev, struct rtc_time *tm)
(tm->tm_year << YEAR_SHIFT);
writel(time, config->ioaddr + TIME_REG);
writel(date, config->ioaddr + DATE_REG);
err = is_write_complete(config);
if (err < 0)
return err;

return 0;
return is_write_complete(config);
}

/*
Expand Down Expand Up @@ -295,7 +292,8 @@ static int spear_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm)
static int spear_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm)
{
struct spear_rtc_config *config = dev_get_drvdata(dev);
unsigned int time, date, err = 0;
unsigned int time, date;
int err;

if (tm2bcd(&alm->time) < 0)
return -EINVAL;
Expand Down Expand Up @@ -357,7 +355,7 @@ static int __devinit spear_rtc_probe(struct platform_device *pdev)
{
struct resource *res;
struct spear_rtc_config *config;
unsigned int status = 0;
int status = 0;
int irq;

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
Expand Down

0 comments on commit c278c9d

Please sign in to comment.