Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105483
b: refs/heads/master
c: 71fc822
h: refs/heads/master
i:
  105481: 1169ed8
  105479: c8903b3
v: v3
  • Loading branch information
David Brownell authored and Linus Torvalds committed Jul 24, 2008
1 parent 8d3e187 commit 7fb5e89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 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: d3de851a445123f24ad8ece18662014b5e8a8b4e
refs/heads/master: 71fc822455ccb63a66be0b6e97a415aceb0062c6
21 changes: 4 additions & 17 deletions trunk/drivers/rtc/rtc-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,6 @@
#define rtc_write(val, addr) omap_writeb(val, OMAP_RTC_BASE + (addr))


/* platform_bus isn't hotpluggable, so for static linkage it'd be safe
* to get rid of probe() and remove() code ... too bad the driver struct
* remembers probe(), that's about 25% of the runtime footprint!!
*/
#ifndef MODULE
#undef __devexit
#undef __devexit_p
#define __devexit __exit
#define __devexit_p __exit_p
#endif


/* we rely on the rtc framework to handle locking (rtc->ops_lock),
* so the only other requirement is that register accesses which
* require BUSY to be clear are made with IRQs locally disabled
Expand Down Expand Up @@ -324,7 +312,7 @@ static struct rtc_class_ops omap_rtc_ops = {
static int omap_rtc_alarm;
static int omap_rtc_timer;

static int __devinit omap_rtc_probe(struct platform_device *pdev)
static int __init omap_rtc_probe(struct platform_device *pdev)
{
struct resource *res, *mem;
struct rtc_device *rtc;
Expand Down Expand Up @@ -440,7 +428,7 @@ static int __devinit omap_rtc_probe(struct platform_device *pdev)
return -EIO;
}

static int __devexit omap_rtc_remove(struct platform_device *pdev)
static int __exit omap_rtc_remove(struct platform_device *pdev)
{
struct rtc_device *rtc = platform_get_drvdata(pdev);;

Expand Down Expand Up @@ -498,8 +486,7 @@ static void omap_rtc_shutdown(struct platform_device *pdev)

MODULE_ALIAS("platform:omap_rtc");
static struct platform_driver omap_rtc_driver = {
.probe = omap_rtc_probe,
.remove = __devexit_p(omap_rtc_remove),
.remove = __exit_p(omap_rtc_remove),
.suspend = omap_rtc_suspend,
.resume = omap_rtc_resume,
.shutdown = omap_rtc_shutdown,
Expand All @@ -511,7 +498,7 @@ static struct platform_driver omap_rtc_driver = {

static int __init rtc_init(void)
{
return platform_driver_register(&omap_rtc_driver);
return platform_driver_probe(&omap_rtc_driver, omap_rtc_probe);
}
module_init(rtc_init);

Expand Down

0 comments on commit 7fb5e89

Please sign in to comment.