diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2015-04-16 15:46:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:02 -0400 |
commit | 5d9094b6c7fc87d1909143540c1e2fddde9129b3 (patch) | |
tree | be1d53387221b9d7dd1c5790299261241a7832f5 /drivers/rtc/rtc-omap.c | |
parent | 8608976e2bc9c1df090e1b346c65ec1405e9d03d (diff) |
drivers/rtc/rtc-omap.c: use module_platform_driver
module_platform_driver_probe() prevents driver from requesting probe
deferral. So using module_platform_drive() to support probe deferral.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tero Kristo <t-kristo@ti.com>
Cc: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-omap.c')
-rw-r--r-- | drivers/rtc/rtc-omap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index a5ff00931360..8b6355ffaff9 100644 --- a/drivers/rtc/rtc-omap.c +++ b/drivers/rtc/rtc-omap.c | |||
@@ -521,7 +521,7 @@ static const struct of_device_id omap_rtc_of_match[] = { | |||
521 | }; | 521 | }; |
522 | MODULE_DEVICE_TABLE(of, omap_rtc_of_match); | 522 | MODULE_DEVICE_TABLE(of, omap_rtc_of_match); |
523 | 523 | ||
524 | static int __init omap_rtc_probe(struct platform_device *pdev) | 524 | static int omap_rtc_probe(struct platform_device *pdev) |
525 | { | 525 | { |
526 | struct omap_rtc *rtc; | 526 | struct omap_rtc *rtc; |
527 | struct resource *res; | 527 | struct resource *res; |
@@ -756,6 +756,7 @@ static void omap_rtc_shutdown(struct platform_device *pdev) | |||
756 | } | 756 | } |
757 | 757 | ||
758 | static struct platform_driver omap_rtc_driver = { | 758 | static struct platform_driver omap_rtc_driver = { |
759 | .probe = omap_rtc_probe, | ||
759 | .remove = __exit_p(omap_rtc_remove), | 760 | .remove = __exit_p(omap_rtc_remove), |
760 | .shutdown = omap_rtc_shutdown, | 761 | .shutdown = omap_rtc_shutdown, |
761 | .driver = { | 762 | .driver = { |
@@ -766,7 +767,7 @@ static struct platform_driver omap_rtc_driver = { | |||
766 | .id_table = omap_rtc_id_table, | 767 | .id_table = omap_rtc_id_table, |
767 | }; | 768 | }; |
768 | 769 | ||
769 | module_platform_driver_probe(omap_rtc_driver, omap_rtc_probe); | 770 | module_platform_driver(omap_rtc_driver); |
770 | 771 | ||
771 | MODULE_ALIAS("platform:omap_rtc"); | 772 | MODULE_ALIAS("platform:omap_rtc"); |
772 | MODULE_AUTHOR("George G. Davis (and others)"); | 773 | MODULE_AUTHOR("George G. Davis (and others)"); |