Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139229
b: refs/heads/master
c: 05439f1
h: refs/heads/master
i:
  139227: d1695c9
v: v3
  • Loading branch information
dann frazier authored and Linus Torvalds committed Apr 1, 2009
1 parent 34235ef commit a65fc3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 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: 93d456d9802a40859ecc3d67be8c759b03aa487d
refs/heads/master: 05439f1f89aebbdb791c49e980f0f31652e4055b
12 changes: 1 addition & 11 deletions trunk/drivers/rtc/rtc-parisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@
/* as simple as can be, and no simpler. */
struct parisc_rtc {
struct rtc_device *rtc;
spinlock_t lock;
};

static int parisc_get_time(struct device *dev, struct rtc_time *tm)
{
struct parisc_rtc *p = dev_get_drvdata(dev);
unsigned long flags, ret;
unsigned long ret;

spin_lock_irqsave(&p->lock, flags);
ret = get_rtc_time(tm);
spin_unlock_irqrestore(&p->lock, flags);

if (ret & RTC_BATT_BAD)
return -EOPNOTSUPP;
Expand All @@ -34,13 +30,9 @@ static int parisc_get_time(struct device *dev, struct rtc_time *tm)

static int parisc_set_time(struct device *dev, struct rtc_time *tm)
{
struct parisc_rtc *p = dev_get_drvdata(dev);
unsigned long flags;
int ret;

spin_lock_irqsave(&p->lock, flags);
ret = set_rtc_time(tm);
spin_unlock_irqrestore(&p->lock, flags);

if (ret < 0)
return -EOPNOTSUPP;
Expand All @@ -61,8 +53,6 @@ static int __devinit parisc_rtc_probe(struct platform_device *dev)
if (!p)
return -ENOMEM;

spin_lock_init(&p->lock);

p->rtc = rtc_device_register("rtc-parisc", &dev->dev, &parisc_rtc_ops,
THIS_MODULE);
if (IS_ERR(p->rtc)) {
Expand Down

0 comments on commit a65fc3a

Please sign in to comment.