Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365758
b: refs/heads/master
c: 2c0011d
h: refs/heads/master
v: v3
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Apr 30, 2013
1 parent 2c95490 commit ef938dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: aac8703c1313c4b7e1a4cf82bcfe62ab0ad79b0d
refs/heads/master: 2c0011dd2fb09d6bcfc0ff4524131a08b0006e47
7 changes: 2 additions & 5 deletions trunk/drivers/rtc/rtc-ds3234.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ static int ds3234_probe(struct spi_device *spi)
ds3234_get_reg(&spi->dev, DS3234_REG_CONT_STAT, &tmp);
dev_info(&spi->dev, "Ctrl/Stat Reg: 0x%02x\n", tmp);

rtc = rtc_device_register("ds3234",
&spi->dev, &ds3234_rtc_ops, THIS_MODULE);
rtc = devm_rtc_device_register(&spi->dev, "ds3234",
&ds3234_rtc_ops, THIS_MODULE);
if (IS_ERR(rtc))
return PTR_ERR(rtc);

Expand All @@ -158,9 +158,6 @@ static int ds3234_probe(struct spi_device *spi)

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

rtc_device_unregister(rtc);
return 0;
}

Expand Down

0 comments on commit ef938dc

Please sign in to comment.