Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365765
b: refs/heads/master
c: fb320d0
h: refs/heads/master
i:
  365763: b004d0d
v: v3
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Apr 30, 2013
1 parent bdfe625 commit 46e8c6c
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 0166fcd09f9343a0371ab47c92e969600512504d
refs/heads/master: fb320d0a5c037106aa6835a59dc71c6c2eb9c235
9 changes: 2 additions & 7 deletions trunk/drivers/rtc/rtc-m41t94.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ static int m41t94_probe(struct spi_device *spi)
return res;
}

rtc = rtc_device_register(m41t94_driver.driver.name,
&spi->dev, &m41t94_rtc_ops, THIS_MODULE);
rtc = devm_rtc_device_register(&spi->dev, m41t94_driver.driver.name,
&m41t94_rtc_ops, THIS_MODULE);
if (IS_ERR(rtc))
return PTR_ERR(rtc);

Expand All @@ -136,11 +136,6 @@ static int m41t94_probe(struct spi_device *spi)

static int m41t94_remove(struct spi_device *spi)
{
struct rtc_device *rtc = spi_get_drvdata(spi);

if (rtc)
rtc_device_unregister(rtc);

return 0;
}

Expand Down

0 comments on commit 46e8c6c

Please sign in to comment.