Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139232
b: refs/heads/master
c: 2b93cff
h: refs/heads/master
v: v3
  • Loading branch information
dann frazier authored and Linus Torvalds committed Apr 1, 2009
1 parent 4c64e10 commit 42fb531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: f62bacd4d48a1a6b8931a0140fb2324a06dd89fe
refs/heads/master: 2b93cff4dc184bf7b4858dc7a9bd2e8d33c1a3eb
12 changes: 3 additions & 9 deletions trunk/drivers/rtc/rtc-parisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,14 @@ static const struct rtc_class_ops parisc_rtc_ops = {
.set_time = parisc_set_time,
};

static int __devinit parisc_rtc_probe(struct platform_device *dev)
static int __init parisc_rtc_probe(struct platform_device *dev)
{
struct rtc_device *p;

p = kzalloc(sizeof (*p), GFP_KERNEL);
if (!p)
return -ENOMEM;

p = rtc_device_register("rtc-parisc", &dev->dev, &parisc_rtc_ops,
THIS_MODULE);
if (IS_ERR(p)) {
int err = PTR_ERR(p);
kfree(p);
return err;
}

Expand All @@ -61,12 +56,11 @@ static int __devinit parisc_rtc_probe(struct platform_device *dev)
return 0;
}

static int __devexit parisc_rtc_remove(struct platform_device *dev)
static int __exit parisc_rtc_remove(struct platform_device *dev)
{
struct rtc_device *p = platform_get_drvdata(dev);

rtc_device_unregister(p);
kfree(p);

return 0;
}
Expand All @@ -82,7 +76,7 @@ static struct platform_driver parisc_rtc_driver = {

static int __init parisc_rtc_init(void)
{
return platform_driver_register(&parisc_rtc_driver);
return platform_driver_probe(&parisc_rtc_driver, parisc_rtc_probe);
}

static void __exit parisc_rtc_fini(void)
Expand Down

0 comments on commit 42fb531

Please sign in to comment.