rtc: rtc-ab3100: use module_platform_driver_probe()
Subsystems (6)
PATCH 1/24 rtc: rtc-ab3100: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-ab3100.c | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-)
drivers/rtc/rtc-ab3100.c +1 -13
@@ -257,19 +257,7 @@ static struct platform_driver ab3100_rtc_driver = { .remove = __exit_p(ab3100_rtc_remove), }; -static int __init ab3100_rtc_init (void ) -{ -return platform_driver_probe (&ab3100_rtc_driver, - ab3100_rtc_probe); -} - -static void __exit ab3100_rtc_exit(void) -{ -platform_driver_unregister (&ab3100_rtc_driver); -} - -module_init (ab3100_rtc_init); -module_exit (ab3100_rtc_exit); +module_platform_driver_probe (ab3100_rtc_driver, ab3100_rtc_probe);MODULE_AUTHOR ("Linus Walleij <[email protected]>" );MODULE_DESCRIPTION ("AB3100 RTC Driver" );
Signature · 1 line
1.7.2.5
PATCH 2/24 rtc: rtc-at32ap700x: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-at32ap700x.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)
drivers/rtc/rtc-at32ap700x.c +1 -11
@@ -302,17 +302,7 @@ static struct platform_driver at32_rtc_driver = { }, }; -static int __init at32_rtc_init (void ) -{ -return platform_driver_probe (&at32_rtc_driver, at32_rtc_probe); -} -module_init (at32_rtc_init); - -static void __exit at32_rtc_exit(void) -{ -platform_driver_unregister (&at32_rtc_driver); -} -module_exit (at32_rtc_exit); +module_platform_driver_probe (at32_rtc_driver, at32_rtc_probe);MODULE_AUTHOR ("Hans-Christian Egtvedt <[email protected]>" );MODULE_DESCRIPTION ("Real time clock for AVR32 AT32AP700x" );
Signature · 1 line
1.7.2.5
PATCH 3/24 rtc: rtc-at91rm9200: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-at91rm9200.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-at91rm9200.c +1 -12
@@ -390,18 +390,7 @@ static struct platform_driver at91_rtc_driver = { }, }; -static int __init at91_rtc_init (void ) -{ -return platform_driver_probe (&at91_rtc_driver, at91_rtc_probe); -} - -static void __exit at91_rtc_exit(void) -{ -platform_driver_unregister (&at91_rtc_driver); -} - -module_init (at91_rtc_init); -module_exit (at91_rtc_exit); +module_platform_driver_probe (at91_rtc_driver, at91_rtc_probe);MODULE_AUTHOR ("Rick Bronson" );MODULE_DESCRIPTION ("RTC driver for Atmel AT91RM9200" );
Signature · 1 line
1.7.2.5
PATCH 4/24 rtc: rtc-au1xxx: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-au1xxx.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-au1xxx.c +1 -12
@@ -134,18 +134,7 @@ static struct platform_driver au1xrtc_driver = { .remove = au1xtoy_rtc_remove, }; -static int __init au1xtoy_rtc_init (void ) -{ -return platform_driver_probe (&au1xrtc_driver, au1xtoy_rtc_probe); -} - -static void __exit au1xtoy_rtc_exit(void) -{ -platform_driver_unregister (&au1xrtc_driver); -} - -module_init (au1xtoy_rtc_init); -module_exit (au1xtoy_rtc_exit); +module_platform_driver_probe (au1xrtc_driver, au1xtoy_rtc_probe);MODULE_DESCRIPTION ("Au1xxx TOY-counter-based RTC driver" );MODULE_AUTHOR ("Manuel Lauss <[email protected]>" );
Signature · 1 line
1.7.2.5
PATCH 5/24 rtc: rtc-coh901331: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-coh901331.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-coh901331.c +1 -12
@@ -287,18 +287,7 @@ static struct platform_driver coh901331_driver = { .shutdown = coh901331_shutdown, }; -static int __init coh901331_init (void ) -{ -return platform_driver_probe (&coh901331_driver, coh901331_probe); -} - -static void __exit coh901331_exit(void) -{ -platform_driver_unregister (&coh901331_driver); -} - -module_init (coh901331_init); -module_exit (coh901331_exit); +module_platform_driver_probe (coh901331_driver, coh901331_probe);MODULE_AUTHOR ("Linus Walleij <[email protected]>" );MODULE_DESCRIPTION ("ST-Ericsson AB COH 901 331 RTC Driver" );
Signature · 1 line
1.7.2.5
Re: [rtc-linux] [PATCH 05/24] rtc: rtc-coh901331: use module_platform_driver_probe()
Quoted 4 lines · Jingoo Han
This patch uses
module_platform_driver_probe()macro which makes the code smaller and simpler.Signed-off-by Jingoo Han <[email protected]>
Yours,
Linus Walleij
PATCH 6/24 rtc: rtc-davinci: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-davinci.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)
drivers/rtc/rtc-davinci.c +1 -11
@@ -588,17 +588,7 @@ static struct platform_driver davinci_rtc_driver = { }, }; -static int __init rtc_init (void ) -{ -return platform_driver_probe (&davinci_rtc_driver, davinci_rtc_probe); -} -module_init (rtc_init); - -static void __exit rtc_exit(void) -{ -platform_driver_unregister (&davinci_rtc_driver); -} -module_exit (rtc_exit); +module_platform_driver_probe (davinci_rtc_driver, davinci_rtc_probe);MODULE_AUTHOR ("Miguel Aguilar <[email protected]>" );MODULE_DESCRIPTION ("Texas Instruments DaVinci PRTC Driver" );
Signature · 1 line
1.7.2.5
PATCH 7/24 rtc: rtc-ds1302: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-ds1302.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-ds1302.c +1 -12
@@ -252,18 +252,7 @@ static struct platform_driver ds1302_platform_driver = { .remove = __exit_p(ds1302_rtc_remove), }; -static int __init ds1302_rtc_init (void ) -{ -return platform_driver_probe (&ds1302_platform_driver, ds1302_rtc_probe); -} - -static void __exit ds1302_rtc_exit(void) -{ -platform_driver_unregister (&ds1302_platform_driver); -} - -module_init (ds1302_rtc_init); -module_exit (ds1302_rtc_exit); +module_platform_driver_probe (ds1302_platform_driver, ds1302_rtc_probe);MODULE_DESCRIPTION ("Dallas DS1302 RTC driver" );MODULE_VERSION (DRV_VERSION );
Signature · 1 line
1.7.2.5
PATCH 8/24 rtc: rtc-efi: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-efi.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-efi.c +1 -12
@@ -218,18 +218,7 @@ static struct platform_driver efi_rtc_driver = { .remove = __exit_p(efi_rtc_remove), }; -static int __init efi_rtc_init (void ) -{ -return platform_driver_probe (&efi_rtc_driver, efi_rtc_probe); -} - -static void __exit efi_rtc_exit(void) -{ -platform_driver_unregister (&efi_rtc_driver); -} - -module_init (efi_rtc_init); -module_exit (efi_rtc_exit); +module_platform_driver_probe (efi_rtc_driver, efi_rtc_probe);MODULE_AUTHOR ("dann frazier <[email protected]>" );MODULE_LICENSE ("GPL" );
Signature · 1 line
1.7.2.5
PATCH 9/24 rtc: rtc-generic: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-generic.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-generic.c +1 -12
@@ -65,18 +65,7 @@ static struct platform_driver generic_rtc_driver = { .remove = __exit_p(generic_rtc_remove), }; -static int __init generic_rtc_init (void ) -{ -return platform_driver_probe (&generic_rtc_driver, generic_rtc_probe); -} - -static void __exit generic_rtc_fini(void) -{ -platform_driver_unregister (&generic_rtc_driver); -} - -module_init (generic_rtc_init); -module_exit (generic_rtc_fini); +module_platform_driver_probe (generic_rtc_driver, generic_rtc_probe);MODULE_AUTHOR ("Kyle McMartin <[email protected]>" );MODULE_LICENSE ("GPL" );
Signature · 1 line
1.7.2.5
PATCH 10/24 rtc: rtc-imxdi: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-imxdi.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-imxdi.c +1 -12
@@ -513,18 +513,7 @@ static struct platform_driver dryice_rtc_driver = { .remove = __exit_p(dryice_rtc_remove), }; -static int __init dryice_rtc_init (void ) -{ -return platform_driver_probe (&dryice_rtc_driver, dryice_rtc_probe); -} - -static void __exit dryice_rtc_exit(void) -{ -platform_driver_unregister (&dryice_rtc_driver); -} - -module_init (dryice_rtc_init); -module_exit (dryice_rtc_exit); +module_platform_driver_probe (dryice_rtc_driver, dryice_rtc_probe);MODULE_AUTHOR ("Freescale Semiconductor, Inc." );MODULE_AUTHOR ("Baruch Siach <[email protected]>" );
Signature · 1 line
1.7.2.5
PATCH 11/24 rtc: rtc-mc13xxx: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-mc13xxx.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)
drivers/rtc/rtc-mc13xxx.c +1 -11
@@ -420,17 +420,7 @@ static struct platform_driver mc13xxx_rtc_driver = { }, }; -static int __init mc13xxx_rtc_init (void ) -{ -return platform_driver_probe (&mc13xxx_rtc_driver, &mc13xxx_rtc_probe); -} -module_init (mc13xxx_rtc_init); - -static void __exit mc13xxx_rtc_exit(void) -{ -platform_driver_unregister (&mc13xxx_rtc_driver); -} -module_exit (mc13xxx_rtc_exit); +module_platform_driver_probe (mc13xxx_rtc_driver, &mc13xxx_rtc_probe);MODULE_AUTHOR ("Sascha Hauer <[email protected]>" );MODULE_DESCRIPTION ("RTC driver for Freescale MC13XXX PMIC" );
Signature · 1 line
1.7.2.5
PATCH 12/24 rtc: rtc-msm6242: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-msm6242.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-msm6242.c +1 -12
@@ -252,18 +252,7 @@ static struct platform_driver msm6242_rtc_driver = { .remove = __exit_p(msm6242_rtc_remove), }; -static int __init msm6242_rtc_init (void ) -{ -return platform_driver_probe (&msm6242_rtc_driver, msm6242_rtc_probe); -} - -static void __exit msm6242_rtc_fini(void) -{ -platform_driver_unregister (&msm6242_rtc_driver); -} - -module_init (msm6242_rtc_init); -module_exit (msm6242_rtc_fini); +module_platform_driver_probe (msm6242_rtc_driver, msm6242_rtc_probe);MODULE_AUTHOR ("Geert Uytterhoeven <[email protected]>" );MODULE_LICENSE ("GPL" );
Signature · 1 line
1.7.2.5
Re: [PATCH 12/24] rtc: rtc-msm6242: use module_platform_driver_probe()
Quoted 4 lines · Jingoo Han
This patch uses
module_platform_driver_probe()macro which makes the code smaller and simpler.Signed-off-by Jingoo Han <[email protected]>
Quoted 18 lines
--- drivers/rtc/rtc-msm6242.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)drivers/rtc/rtc-msm6242.c +0
-6@@ -252,18 +252,7 @@ static struct platform_driver msm6242_rtc_driver = { .remove = __exit_p(msm6242_rtc_remove), }; -static int __init msm6242_rtc_init (void ) -{ -return platform_driver_probe (&msm6242_rtc_driver, msm6242_rtc_probe); -} - -static void __exit msm6242_rtc_fini(void)
drivers/rtc/rtc-msm6242.c static struct platform_driver msm6242_rtc_driver = { · line 258
Quoted 10 lines
drivers/rtc/rtc-msm6242.c +1
-6-{ -platform_driver_unregister (&msm6242_rtc_driver); -} - -module_init (msm6242_rtc_init); -module_exit (msm6242_rtc_fini); +module_platform_driver_probe (msm6242_rtc_driver, msm6242_rtc_probe);MODULE_AUTHOR ("Geert Uytterhoeven <[email protected]>" );MODULE_LICENSE ("GPL" );
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
PATCH 13/24 rtc: rtc-mv: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-mv.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-mv.c +1 -12
@@ -311,18 +311,7 @@ static struct platform_driver mv_rtc_driver = { }, }; -static __init int mv_init (void ) -{ -return platform_driver_probe (&mv_rtc_driver, mv_rtc_probe); -} - -static __exit void mv_exit(void) -{ -platform_driver_unregister (&mv_rtc_driver); -} - -module_init (mv_init); -module_exit (mv_exit); +module_platform_driver_probe (mv_rtc_driver, mv_rtc_probe);MODULE_AUTHOR ("Saeed Bishara <[email protected]>" );MODULE_DESCRIPTION ("Marvell RTC driver" );
Signature · 1 line
1.7.2.5
PATCH 14/24 rtc: rtc-nuc900: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-nuc900.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-nuc900.c +1 -12
@@ -311,18 +311,7 @@ static struct platform_driver nuc900_rtc_driver = { }, }; -static int __init nuc900_rtc_init (void ) -{ -return platform_driver_probe (&nuc900_rtc_driver, nuc900_rtc_probe); -} - -static void __exit nuc900_rtc_exit(void) -{ -platform_driver_unregister (&nuc900_rtc_driver); -} - -module_init (nuc900_rtc_init); -module_exit (nuc900_rtc_exit); +module_platform_driver_probe (nuc900_rtc_driver, nuc900_rtc_probe);MODULE_AUTHOR ("Wan ZongShun <[email protected]>" );MODULE_DESCRIPTION ("nuc910/nuc920 RTC driver" );
Signature · 1 line
1.7.2.5
PATCH 15/24 rtc: rtc-omap: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-omap.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)
drivers/rtc/rtc-omap.c +1 -11
@@ -550,17 +550,7 @@ static struct platform_driver omap_rtc_driver = { .id_table = omap_rtc_devtype, }; -static int __init rtc_init (void ) -{ -return platform_driver_probe (&omap_rtc_driver, omap_rtc_probe); -} -module_init (rtc_init); - -static void __exit rtc_exit(void) -{ -platform_driver_unregister (&omap_rtc_driver); -} -module_exit (rtc_exit); +module_platform_driver_probe (omap_rtc_driver, omap_rtc_probe);MODULE_AUTHOR ("George G. Davis (and others)" );MODULE_LICENSE ("GPL" );
Signature · 1 line
1.7.2.5
PATCH 16/24 rtc: rtc-pcap: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-pcap.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-pcap.c +1 -12
@@ -203,18 +203,7 @@ static struct platform_driver pcap_rtc_driver = { }, }; -static int __init rtc_pcap_init (void ) -{ -return platform_driver_probe (&pcap_rtc_driver, pcap_rtc_probe); -} - -static void __exit rtc_pcap_exit(void) -{ -platform_driver_unregister (&pcap_rtc_driver); -} - -module_init (rtc_pcap_init); -module_exit (rtc_pcap_exit); +module_platform_driver_probe (pcap_rtc_driver, pcap_rtc_probe);MODULE_DESCRIPTION ("Motorola pcap rtc driver" );MODULE_AUTHOR ("guiming zhuo <[email protected]>" );
Signature · 1 line
1.7.2.5
PATCH 17/24 rtc: rtc-ps3: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-ps3.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-ps3.c +1 -12
@@ -85,18 +85,7 @@ static struct platform_driver ps3_rtc_driver = { .remove = __exit_p(ps3_rtc_remove), }; -static int __init ps3_rtc_init (void ) -{ -return platform_driver_probe (&ps3_rtc_driver, ps3_rtc_probe); -} - -static void __exit ps3_rtc_fini(void) -{ -platform_driver_unregister (&ps3_rtc_driver); -} - -module_init (ps3_rtc_init); -module_exit (ps3_rtc_fini); +module_platform_driver_probe (ps3_rtc_driver, ps3_rtc_probe);MODULE_AUTHOR ("Sony Corporation" );MODULE_LICENSE ("GPL" );
Signature · 1 line
1.7.2.5
Re: [PATCH 17/24] rtc: rtc-ps3: use module_platform_driver_probe()
Quoted 4 lines · Jingoo Han
This patch uses
module_platform_driver_probe()macro which makes the code smaller and simpler.Signed-off-by Jingoo Han <[email protected]>
Quoted 18 lines
--- drivers/rtc/rtc-ps3.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)drivers/rtc/rtc-ps3.c +0
-6@@ -85,18 +85,7 @@ static struct platform_driver ps3_rtc_driver = { .remove = __exit_p(ps3_rtc_remove), }; -static int __init ps3_rtc_init (void ) -{ -return platform_driver_probe (&ps3_rtc_driver, ps3_rtc_probe); -} - -static void __exit ps3_rtc_fini(void)
drivers/rtc/rtc-ps3.c static struct platform_driver ps3_rtc_driver = { · line 91
Quoted 10 lines
drivers/rtc/rtc-ps3.c +1
-6-{ -platform_driver_unregister (&ps3_rtc_driver); -} - -module_init (ps3_rtc_init); -module_exit (ps3_rtc_fini); +module_platform_driver_probe (ps3_rtc_driver, ps3_rtc_probe);MODULE_AUTHOR ("Sony Corporation" );MODULE_LICENSE ("GPL" );
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
PATCH 18/24 rtc: rtc-pxa: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-pxa.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-pxa.c +1 -12
@@ -502,18 +502,7 @@ static struct platform_driver pxa_rtc_driver = { }, }; -static int __init pxa_rtc_init (void ) -{ -return platform_driver_probe (&pxa_rtc_driver, pxa_rtc_probe); -} - -static void __exit pxa_rtc_exit(void) -{ -platform_driver_unregister (&pxa_rtc_driver); -} - -module_init (pxa_rtc_init); -module_exit (pxa_rtc_exit); +module_platform_driver_probe (pxa_rtc_driver, pxa_rtc_probe);MODULE_AUTHOR ("Robert Jarzmik <[email protected]>" );MODULE_DESCRIPTION ("PXA27x/PXA3xx Realtime Clock Driver (RTC)" );
Signature · 1 line
1.7.2.5
PATCH 19/24 rtc: rtc-rp5c01: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-rp5c01.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-rp5c01.c +1 -12
@@ -294,18 +294,7 @@ static struct platform_driver rp5c01_rtc_driver = { .remove = __exit_p(rp5c01_rtc_remove), }; -static int __init rp5c01_rtc_init (void ) -{ -return platform_driver_probe (&rp5c01_rtc_driver, rp5c01_rtc_probe); -} - -static void __exit rp5c01_rtc_fini(void) -{ -platform_driver_unregister (&rp5c01_rtc_driver); -} - -module_init (rp5c01_rtc_init); -module_exit (rp5c01_rtc_fini); +module_platform_driver_probe (rp5c01_rtc_driver, rp5c01_rtc_probe);MODULE_AUTHOR ("Geert Uytterhoeven <[email protected]>" );MODULE_LICENSE ("GPL" );
Signature · 1 line
1.7.2.5
Re: [PATCH 19/24] rtc: rtc-rp5c01: use module_platform_driver_probe()
Quoted 4 lines · Jingoo Han
This patch uses
module_platform_driver_probe()macro which makes the code smaller and simpler.Signed-off-by Jingoo Han <[email protected]>
Quoted 18 lines
--- drivers/rtc/rtc-rp5c01.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)drivers/rtc/rtc-rp5c01.c +0
-6@@ -294,18 +294,7 @@ static struct platform_driver rp5c01_rtc_driver = { .remove = __exit_p(rp5c01_rtc_remove), }; -static int __init rp5c01_rtc_init (void ) -{ -return platform_driver_probe (&rp5c01_rtc_driver, rp5c01_rtc_probe); -} - -static void __exit rp5c01_rtc_fini(void)
drivers/rtc/rtc-rp5c01.c static struct platform_driver rp5c01_rtc_driver = { · line 300
Quoted 10 lines
drivers/rtc/rtc-rp5c01.c +1
-6-{ -platform_driver_unregister (&rp5c01_rtc_driver); -} - -module_init (rp5c01_rtc_init); -module_exit (rp5c01_rtc_fini); +module_platform_driver_probe (rp5c01_rtc_driver, rp5c01_rtc_probe);MODULE_AUTHOR ("Geert Uytterhoeven <[email protected]>" );MODULE_LICENSE ("GPL" );
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
PATCH 20/24 rtc: rtc-sh: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-sh.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-sh.c +1 -12
@@ -820,18 +820,7 @@ static struct platform_driver sh_rtc_platform_driver = { .remove = __exit_p(sh_rtc_remove), }; -static int __init sh_rtc_init (void ) -{ -return platform_driver_probe (&sh_rtc_platform_driver, sh_rtc_probe); -} - -static void __exit sh_rtc_exit(void) -{ -platform_driver_unregister (&sh_rtc_platform_driver); -} - -module_init (sh_rtc_init); -module_exit (sh_rtc_exit); +module_platform_driver_probe (sh_rtc_platform_driver, sh_rtc_probe);MODULE_DESCRIPTION ("SuperH on-chip RTC driver" );MODULE_VERSION (DRV_VERSION );
Signature · 1 line
1.7.2.5
Re: [PATCH 20/24] rtc: rtc-sh: use module_platform_driver_probe()
Quoted 4 lines · Jingoo Han
This patch uses
module_platform_driver_probe()macro which makes the code smaller and simpler.Signed-off-by Jingoo Han <[email protected]>
Not sure I see the point, but:
PATCH 21/24 rtc: rtc-starfire: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-starfire.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-starfire.c +1 -12
@@ -66,15 +66,4 @@ static struct platform_driver starfire_rtc_driver = { .remove = __exit_p(starfire_rtc_remove), }; -static int __init starfire_rtc_init (void ) -{ -return platform_driver_probe (&starfire_rtc_driver, starfire_rtc_probe); -} - -static void __exit starfire_rtc_exit(void) -{ -platform_driver_unregister (&starfire_rtc_driver); -} - -module_init (starfire_rtc_init); -module_exit (starfire_rtc_exit); +module_platform_driver_probe (starfire_rtc_driver, starfire_rtc_probe);
Signature · 1 line
1.7.2.5
PATCH 22/24 rtc: rtc-sun4v: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-sun4v.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-sun4v.c +1 -12
@@ -106,18 +106,7 @@ static struct platform_driver sun4v_rtc_driver = { .remove = __exit_p(sun4v_rtc_remove), }; -static int __init sun4v_rtc_init (void ) -{ -return platform_driver_probe (&sun4v_rtc_driver, sun4v_rtc_probe); -} - -static void __exit sun4v_rtc_exit(void) -{ -platform_driver_unregister (&sun4v_rtc_driver); -} - -module_init (sun4v_rtc_init); -module_exit (sun4v_rtc_exit); +module_platform_driver_probe (sun4v_rtc_driver, sun4v_rtc_probe);MODULE_AUTHOR ("David S. Miller <[email protected]>" );MODULE_DESCRIPTION ("SUN4V RTC driver" );
Signature · 1 line
1.7.2.5
PATCH 23/24 rtc: rtc-tegra: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-tegra.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)
drivers/rtc/rtc-tegra.c +1 -11
@@ -452,17 +452,7 @@ static struct platform_driver tegra_rtc_driver = {#endif }; -static int __init tegra_rtc_init (void ) -{ -return platform_driver_probe (&tegra_rtc_driver, tegra_rtc_probe); -} -module_init (tegra_rtc_init); - -static void __exit tegra_rtc_exit(void) -{ -platform_driver_unregister (&tegra_rtc_driver); -} -module_exit (tegra_rtc_exit); +module_platform_driver_probe (tegra_rtc_driver, tegra_rtc_probe);MODULE_AUTHOR ("Jon Mayo <[email protected]>" );MODULE_DESCRIPTION ("driver for Tegra internal RTC" );
Signature · 1 line
1.7.2.5
PATCH 24/24 rtc: rtc-tx4939: use module_platform_driver_probe()
In reply to Jingoo HanThis patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.
--- drivers/rtc/rtc-tx4939.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/rtc/rtc-tx4939.c +1 -12
@@ -299,18 +299,7 @@ static struct platform_driver tx4939_rtc_driver = { }, }; -static int __init tx4939rtc_init (void ) -{ -return platform_driver_probe (&tx4939_rtc_driver, tx4939_rtc_probe); -} - -static void __exit tx4939rtc_exit(void) -{ -platform_driver_unregister (&tx4939_rtc_driver); -} - -module_init (tx4939rtc_init); -module_exit (tx4939rtc_exit); +module_platform_driver_probe (tx4939_rtc_driver, tx4939_rtc_probe);MODULE_AUTHOR ("Atsushi Nemoto <[email protected]>" );MODULE_DESCRIPTION ("TX4939 internal RTC driver" );
Signature · 1 line
1.7.2.5
Quoted 4 lines · Jingoo Han
This patch uses
module_platform_driver_probe()macro which makes the code smaller and simpler.Signed-off-by Jingoo Han <[email protected]>
Yours,
Linus Walleij