parisc: rtc: platform_driver_probe() fixups

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, April 3, 2009 - 11:04 am

Gitweb:     http://git.kernel.org/linus/2c83071ead8e2668de69e8659944599c887a12c7
Commit:     2c83071ead8e2668de69e8659944599c887a12c7
Parent:     55457161fdbdb5fe9eeb5027e720462a3fbdcb57
Author:     Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
AuthorDate: Fri Mar 6 15:57:06 2009 +0100
Committer:  Kyle McMartin <kyle@mcmartin.ca>
CommitDate: Thu Apr 2 01:05:30 2009 +0000

    parisc: rtc: platform_driver_probe() fixups
    
    When using platform_driver_probe(), it's not needed to setup a .probe
    function, and .remove should be marked __exit_p(), not __devexit_p().
    
    Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
    Acked-by: Alessandro Zummo <a.zummo@towertech.it>
    Cc: dann frazier <dannf@hp.com>
    Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
---
 drivers/rtc/rtc-parisc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/rtc/rtc-parisc.c b/drivers/rtc/rtc-parisc.c
index 620b949..f4e871c 100644
--- a/drivers/rtc/rtc-parisc.c
+++ b/drivers/rtc/rtc-parisc.c
@@ -62,8 +62,7 @@ static struct platform_driver parisc_rtc_driver = {
 		.name = "rtc-parisc",
 		.owner = THIS_MODULE,
 	},
-	.probe = parisc_rtc_probe,
-	.remove = __devexit_p(parisc_rtc_remove),
+	.remove = __exit_p(parisc_rtc_remove),
 };
 
 static int __init parisc_rtc_init(void)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
parisc: rtc: platform_driver_probe() fixups, Linux Kernel Mailing ..., (Fri Apr 3, 11:04 am)