Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330116
b: refs/heads/master
c: be8b6d5
h: refs/heads/master
v: v3
  • Loading branch information
Fabio Estevam authored and Linus Torvalds committed Oct 5, 2012
1 parent 7ebcad6 commit 2c0bd27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 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: 0f3cde536d5015a918c4b3fd55fbe335428096e5
refs/heads/master: be8b6d510072461b50958527e7b157f53e5388d7
20 changes: 5 additions & 15 deletions trunk/drivers/rtc/rtc-mxc.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ static struct rtc_class_ops mxc_rtc_ops = {
.alarm_irq_enable = mxc_rtc_alarm_irq_enable,
};

static int __init mxc_rtc_probe(struct platform_device *pdev)
static int __devinit mxc_rtc_probe(struct platform_device *pdev)
{
struct resource *res;
struct rtc_device *rtc;
Expand Down Expand Up @@ -433,7 +433,7 @@ static int __init mxc_rtc_probe(struct platform_device *pdev)
return ret;
}

static int __exit mxc_rtc_remove(struct platform_device *pdev)
static int __devexit mxc_rtc_remove(struct platform_device *pdev)
{
struct rtc_plat_data *pdata = platform_get_drvdata(pdev);

Expand Down Expand Up @@ -480,21 +480,11 @@ static struct platform_driver mxc_rtc_driver = {
#endif
.owner = THIS_MODULE,
},
.remove = __exit_p(mxc_rtc_remove),
.probe = mxc_rtc_probe,
.remove = __devexit_p(mxc_rtc_remove),
};

static int __init mxc_rtc_init(void)
{
return platform_driver_probe(&mxc_rtc_driver, mxc_rtc_probe);
}

static void __exit mxc_rtc_exit(void)
{
platform_driver_unregister(&mxc_rtc_driver);
}

module_init(mxc_rtc_init);
module_exit(mxc_rtc_exit);
module_platform_driver(mxc_rtc_driver)

MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>");
MODULE_DESCRIPTION("RTC driver for Freescale MXC");
Expand Down

0 comments on commit 2c0bd27

Please sign in to comment.