rtc: rtc-mv: add __init annotation
PATCH 1/7 rtc: rtc-mv: add __init annotation
When platform_driver_probe() is used, bind/unbind via sysfs is disabled. Thus, __init/__exit annotations can be added to probe()/remove().
--- drivers/rtc/rtc-mv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-mv.c +1 -1
@@ -215,7 +215,7 @@ static const struct rtc_class_ops mv_rtc_alarm_ops = { .alarm_irq_enable = mv_rtc_alarm_irq_enable, }; -static int mv_rtc_probe (struct platform_device *pdev) +static int __init mv_rtc_probe (struct platform_device *pdev) {struct resource *res;struct rtc_plat_data *pdata;
Signature · 1 line
1.7.2.5
PATCH 2/7 rtc: rtc-davinci: add __exit annotation
When platform_driver_probe() is used, bind/unbind via sysfs is disabled. Thus, __init/__exit annotations can be added to probe()/remove().
--- drivers/rtc/rtc-davinci.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/rtc/rtc-davinci.c +2 -2
@@ -564,7 +564,7 @@ fail1:return ret; } -static int davinci_rtc_remove (struct platform_device *pdev) +static int __exit davinci_rtc_remove(struct platform_device *pdev) {struct davinci_rtc *davinci_rtc =platform_get_drvdata (pdev);
@@ -581,7 +581,7 @@ static int davinci_rtc_remove(struct platform_device *pdev)static struct platform_driver davinci_rtc_driver = { .probe = davinci_rtc_probe, - .remove = davinci_rtc_remove, + .remove =__exit_p (davinci_rtc_remove), .driver = { .name ="rtc_davinci" , .owner =THIS_MODULE ,
Signature · 1 line
1.7.2.5
PATCH 3/7 rtc: rtc-ds1302: add __exit annotation
In reply to Jingoo HanWhen platform_driver_probe() is used, bind/unbind via sysfs is disabled. Thus, __init/__exit annotations can be added to probe()/remove().
--- drivers/rtc/rtc-ds1302.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/rtc/rtc-ds1302.c +2 -2
@@ -234,7 +234,7 @@ static int __init ds1302_rtc_probe(struct platform_device *pdev)return 0 ; } -static int ds1302_rtc_remove (struct platform_device *pdev) +static int __exit ds1302_rtc_remove(struct platform_device *pdev) {struct rtc_device *rtc =platform_get_drvdata (pdev);
@@ -249,7 +249,7 @@ static struct platform_driver ds1302_platform_driver = { .name = DRV_NAME, .owner = THIS_MODULE, }, - .remove = ds1302_rtc_remove, + .remove = __exit_p(ds1302_rtc_remove), };static int __init ds1302_rtc_init (void )
Signature · 1 line
1.7.2.5
PATCH 4/7 rtc: rtc-imxdi: add __init/__exit annotation
In reply to Jingoo HanWhen platform_driver_probe() is used, bind/unbind via sysfs is disabled. Thus, __init/__exit annotations can be added to probe()/remove().
--- drivers/rtc/rtc-imxdi.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/rtc/rtc-imxdi.c +3 -3
@@ -369,7 +369,7 @@ static void dryice_work(struct work_struct *work)/* * probe for dryice rtc device */ -static int dryice_rtc_probe (struct platform_device *pdev) +static int __init dryice_rtc_probe (struct platform_device *pdev) {struct resource *res;struct imxdi_dev *imxdi;
@@ -479,7 +479,7 @@ err:return rc; } -static int dryice_rtc_remove (struct platform_device *pdev) +static int __exit dryice_rtc_remove(struct platform_device *pdev) {struct imxdi_dev *imxdi =platform_get_drvdata (pdev);
@@ -510,7 +510,7 @@ static struct platform_driver dryice_rtc_driver = { .owner = THIS_MODULE, .of_match_table = of_match_ptr(dryice_dt_ids), }, - .remove = dryice_rtc_remove, + .remove = __exit_p(dryice_rtc_remove), };static int __init dryice_rtc_init (void )
Signature · 1 line
1.7.2.5
PATCH 5/7 rtc: rtc-nuc900: add __init/__exit annotation
In reply to Jingoo HanWhen platform_driver_probe() is used, bind/unbind via sysfs is disabled. Thus, __init/__exit annotations can be added to probe()/remove().
--- drivers/rtc/rtc-nuc900.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/rtc/rtc-nuc900.c +3 -3
@@ -222,7 +222,7 @@ static struct rtc_class_ops nuc900_rtc_ops = { .alarm_irq_enable = nuc900_alarm_irq_enable, }; -static int nuc900_rtc_probe (struct platform_device *pdev) +static int __init nuc900_rtc_probe (struct platform_device *pdev) {struct resource *res;struct nuc900_rtc *nuc900_rtc;
@@ -284,7 +284,7 @@ fail1: kfree(nuc900_rtc);return err; } -static int nuc900_rtc_remove (struct platform_device *pdev) +static int __exit nuc900_rtc_remove(struct platform_device *pdev) {struct nuc900_rtc *nuc900_rtc =platform_get_drvdata (pdev);struct resource *res;
@@ -304,7 +304,7 @@ static int nuc900_rtc_remove(struct platform_device *pdev) }static struct platform_driver nuc900_rtc_driver = { - .remove = nuc900_rtc_remove, + .remove =__exit_p (nuc900_rtc_remove), .driver = { .name ="nuc900-rtc" , .owner =THIS_MODULE ,
Signature · 1 line
1.7.2.5
PATCH 6/7 rtc: rtc-pcap: add __init/__exit annotation
In reply to Jingoo HanWhen platform_driver_probe() is used, bind/unbind via sysfs is disabled. Thus, __init/__exit annotations can be added to probe()/remove().
--- drivers/rtc/rtc-pcap.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/rtc/rtc-pcap.c +3 -3
@@ -139,7 +139,7 @@ static const struct rtc_class_ops pcap_rtc_ops = { .alarm_irq_enable = pcap_rtc_alarm_irq_enable, }; -static int pcap_rtc_probe (struct platform_device *pdev) +static int __init pcap_rtc_probe (struct platform_device *pdev) {struct pcap_rtc *pcap_rtc;int timer_irq, alarm_irq;
@@ -183,7 +183,7 @@ fail_rtc:return err; } -static int pcap_rtc_remove (struct platform_device *pdev) +static int __exit pcap_rtc_remove(struct platform_device *pdev) {struct pcap_rtc *pcap_rtc =platform_get_drvdata (pdev);
@@ -196,7 +196,7 @@ static int pcap_rtc_remove(struct platform_device *pdev) }static struct platform_driver pcap_rtc_driver = { - .remove = pcap_rtc_remove, + .remove =__exit_p (pcap_rtc_remove), .driver = { .name ="pcap-rtc" , .owner =THIS_MODULE ,
Signature · 1 line
1.7.2.5
PATCH 7/7 rtc: rtc-tegra: add __init/__exit annotation
In reply to Jingoo HanWhen platform_driver_probe() is used, bind/unbind via sysfs is disabled. Thus, __init/__exit annotations can be added to probe()/remove().
--- drivers/rtc/rtc-tegra.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/rtc/rtc-tegra.c +3 -3
@@ -309,7 +309,7 @@ static const struct of_device_id tegra_rtc_dt_match[] = { };MODULE_DEVICE_TABLE (of, tegra_rtc_dt_match); -static int tegra_rtc_probe (struct platform_device *pdev) +static int __init tegra_rtc_probe (struct platform_device *pdev) {struct tegra_rtc_info *info;struct resource *res;
@@ -379,7 +379,7 @@ err_dev_unreg:return ret; } -static int tegra_rtc_remove (struct platform_device *pdev) +static int __exit tegra_rtc_remove(struct platform_device *pdev) {struct tegra_rtc_info *info =platform_get_drvdata (pdev);
@@ -439,7 +439,7 @@ static void tegra_rtc_shutdown(struct platform_device *pdev)MODULE_ALIAS ("platform:tegra_rtc" );static struct platform_driver tegra_rtc_driver = { - .remove = tegra_rtc_remove, + .remove =__exit_p (tegra_rtc_remove), .shutdown = tegra_rtc_shutdown, .driver = { .name ="tegra_rtc" ,
Signature · 1 line
1.7.2.5