public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: adding __init/__exit macros to init/exitfunctions of mtd drivers
@ 2009-06-11  0:23 Peter Hüwe
  2009-06-12  9:03 ` [PATCH] mtd: adding __init/__exit macros to init/exitfunctions Jiri Kosina
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Peter Hüwe @ 2009-06-11  0:23 UTC (permalink / raw)
  To: kernel-janitors

From: Peter Huewe <peterhuewe@gmx.de>

Trivial patch which adds the __init and __exit macros to the module_init /
module_exit functions to the following modules from drivers/mtd/ 
 devices/m25p80.c
 devices/slram.c
 linux version 2.6.30
 ftl.c
 nand/cafe_nand.c
 nand/cmx270_nand.c

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index cc6369e..4ca4fab 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -772,13 +772,13 @@ static struct spi_driver m25p80_driver = {
 };
 
 
-static int m25p80_init(void)
+static int __init m25p80_init(void)
 {
 	return spi_register_driver(&m25p80_driver);
 }
 
 
-static void m25p80_exit(void)
+static void __exit m25p80_exit(void)
 {
 	spi_unregister_driver(&m25p80_driver);
 }
diff --git a/drivers/mtd/devices/slram.c b/drivers/mtd/devices/slram.c
index 00248e8..7d846e9 100644
--- a/drivers/mtd/devices/slram.c
+++ b/drivers/mtd/devices/slram.c
@@ -303,7 +303,7 @@ __setup("slram=", mtd_slram_setup);
 
 #endif
 
-static int init_slram(void)
+static int __init init_slram(void)
 {
 	char *devname;
 	int i;
diff --git a/drivers/mtd/ftl.c b/drivers/mtd/ftl.c
index a790c06..e56d6b4 100644
--- a/drivers/mtd/ftl.c
+++ b/drivers/mtd/ftl.c
@@ -1099,7 +1099,7 @@ static struct mtd_blktrans_ops ftl_tr = {
 	.owner		= THIS_MODULE,
 };
 
-static int init_ftl(void)
+static int __init init_ftl(void)
 {
 	return register_mtd_blktrans(&ftl_tr);
 }
diff --git a/drivers/mtd/nand/cafe_nand.c b/drivers/mtd/nand/cafe_nand.c
index 29acd06..1b4690b 100644
--- a/drivers/mtd/nand/cafe_nand.c
+++ b/drivers/mtd/nand/cafe_nand.c
@@ -903,12 +903,12 @@ static struct pci_driver cafe_nand_pci_driver = {
 	.resume = cafe_nand_resume,
 };
 
-static int cafe_nand_init(void)
+static int __init cafe_nand_init(void)
 {
 	return pci_register_driver(&cafe_nand_pci_driver);
 }
 
-static void cafe_nand_exit(void)
+static void __exit cafe_nand_exit(void)
 {
 	pci_unregister_driver(&cafe_nand_pci_driver);
 }
diff --git a/drivers/mtd/nand/cmx270_nand.c b/drivers/mtd/nand/cmx270_nand.c
index 10081e6..826cacf 100644
--- a/drivers/mtd/nand/cmx270_nand.c
+++ b/drivers/mtd/nand/cmx270_nand.c
@@ -147,7 +147,7 @@ static int cmx270_device_ready(struct mtd_info *mtd)
 /*
  * Main initialization routine
  */
-static int cmx270_init(void)
+static int __init cmx270_init(void)
 {
 	struct nand_chip *this;
 	const char *part_type;
@@ -261,7 +261,7 @@ module_init(cmx270_init);
 /*
  * Clean up routine
  */
-static void cmx270_cleanup(void)
+static void __exit cmx270_cleanup(void)
 {
 	/* Release resources, unregister device */
 	nand_release(cmx270_nand_mtd);

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] mtd: adding __init/__exit macros to init/exitfunctions
  2009-06-11  0:23 [PATCH] mtd: adding __init/__exit macros to init/exitfunctions of mtd drivers Peter Hüwe
@ 2009-06-12  9:03 ` Jiri Kosina
  2009-06-22 22:00 ` [PATCH] mtd: adding __init/__exit macros to init/exitfunctions of mtd drivers Peter Huewe
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Jiri Kosina @ 2009-06-12  9:03 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: TEXT/PLAIN, Size: 3187 bytes --]


[ CCing dmmw2 -- please either Ack the patch so that I can take it through 
  trivial tree, or take it through your tree. Thanks.

On Thu, 11 Jun 2009, Peter Hüwe wrote:

> From: Peter Huewe <peterhuewe@gmx.de>
> 
> Trivial patch which adds the __init and __exit macros to the module_init /
> module_exit functions to the following modules from drivers/mtd/ 
>  devices/m25p80.c
>  devices/slram.c
>  linux version 2.6.30
>  ftl.c
>  nand/cafe_nand.c
>  nand/cmx270_nand.c
> 
> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
> ---
> diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
> index cc6369e..4ca4fab 100644
> --- a/drivers/mtd/devices/m25p80.c
> +++ b/drivers/mtd/devices/m25p80.c
> @@ -772,13 +772,13 @@ static struct spi_driver m25p80_driver = {
>  };
>  
>  
> -static int m25p80_init(void)
> +static int __init m25p80_init(void)
>  {
>  	return spi_register_driver(&m25p80_driver);
>  }
>  
>  
> -static void m25p80_exit(void)
> +static void __exit m25p80_exit(void)
>  {
>  	spi_unregister_driver(&m25p80_driver);
>  }
> diff --git a/drivers/mtd/devices/slram.c b/drivers/mtd/devices/slram.c
> index 00248e8..7d846e9 100644
> --- a/drivers/mtd/devices/slram.c
> +++ b/drivers/mtd/devices/slram.c
> @@ -303,7 +303,7 @@ __setup("slram=", mtd_slram_setup);
>  
>  #endif
>  
> -static int init_slram(void)
> +static int __init init_slram(void)
>  {
>  	char *devname;
>  	int i;
> diff --git a/drivers/mtd/ftl.c b/drivers/mtd/ftl.c
> index a790c06..e56d6b4 100644
> --- a/drivers/mtd/ftl.c
> +++ b/drivers/mtd/ftl.c
> @@ -1099,7 +1099,7 @@ static struct mtd_blktrans_ops ftl_tr = {
>  	.owner		= THIS_MODULE,
>  };
>  
> -static int init_ftl(void)
> +static int __init init_ftl(void)
>  {
>  	return register_mtd_blktrans(&ftl_tr);
>  }
> diff --git a/drivers/mtd/nand/cafe_nand.c b/drivers/mtd/nand/cafe_nand.c
> index 29acd06..1b4690b 100644
> --- a/drivers/mtd/nand/cafe_nand.c
> +++ b/drivers/mtd/nand/cafe_nand.c
> @@ -903,12 +903,12 @@ static struct pci_driver cafe_nand_pci_driver = {
>  	.resume = cafe_nand_resume,
>  };
>  
> -static int cafe_nand_init(void)
> +static int __init cafe_nand_init(void)
>  {
>  	return pci_register_driver(&cafe_nand_pci_driver);
>  }
>  
> -static void cafe_nand_exit(void)
> +static void __exit cafe_nand_exit(void)
>  {
>  	pci_unregister_driver(&cafe_nand_pci_driver);
>  }
> diff --git a/drivers/mtd/nand/cmx270_nand.c b/drivers/mtd/nand/cmx270_nand.c
> index 10081e6..826cacf 100644
> --- a/drivers/mtd/nand/cmx270_nand.c
> +++ b/drivers/mtd/nand/cmx270_nand.c
> @@ -147,7 +147,7 @@ static int cmx270_device_ready(struct mtd_info *mtd)
>  /*
>   * Main initialization routine
>   */
> -static int cmx270_init(void)
> +static int __init cmx270_init(void)
>  {
>  	struct nand_chip *this;
>  	const char *part_type;
> @@ -261,7 +261,7 @@ module_init(cmx270_init);
>  /*
>   * Clean up routine
>   */
> -static void cmx270_cleanup(void)
> +static void __exit cmx270_cleanup(void)
>  {
>  	/* Release resources, unregister device */
>  	nand_release(cmx270_nand_mtd);
> 

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mtd: adding __init/__exit macros to init/exitfunctions of mtd drivers
  2009-06-11  0:23 [PATCH] mtd: adding __init/__exit macros to init/exitfunctions of mtd drivers Peter Hüwe
  2009-06-12  9:03 ` [PATCH] mtd: adding __init/__exit macros to init/exitfunctions Jiri Kosina
@ 2009-06-22 22:00 ` Peter Huewe
  2009-07-01  9:14 ` Peter Hüwe
  2009-07-01  9:44 ` [PATCH] mtd: adding __init/__exit macros to init/exitfunctions Jiri Kosina
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Huewe @ 2009-06-22 22:00 UTC (permalink / raw)
  To: kernel-janitors

Am Freitag 12 Juni 2009 11:03:19 schrieb Jiri Kosina:
> [ CCing dmmw2 -- please either Ack the patch so that I can take it through
>   trivial tree, or take it through your tree. Thanks.
>
> On Thu, 11 Jun 2009, Peter Hüwe wrote:
> > From: Peter Huewe <peterhuewe@gmx.de>
> >
> > Trivial patch which adds the __init and __exit macros to the module_init
> > / module_exit functions to the following modules from drivers/mtd/
> > devices/m25p80.c
> >  devices/slram.c
> >  linux version 2.6.30
> >  ftl.c
> >  nand/cafe_nand.c
> >  nand/cmx270_nand.c
> >
> > Signed-off-by: Peter Huewe <peterhuewe@gmx.de>

Hi,
@ dwmw2: can you please have a look at the trivial patch and if there is no 
problem with it ack it so Jiri can take it through the trivial tree or even 
better you take it through one of yours?
Would be very kind of you.

Thanks,
Peter
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mtd: adding __init/__exit macros to init/exitfunctions of mtd drivers
  2009-06-11  0:23 [PATCH] mtd: adding __init/__exit macros to init/exitfunctions of mtd drivers Peter Hüwe
  2009-06-12  9:03 ` [PATCH] mtd: adding __init/__exit macros to init/exitfunctions Jiri Kosina
  2009-06-22 22:00 ` [PATCH] mtd: adding __init/__exit macros to init/exitfunctions of mtd drivers Peter Huewe
@ 2009-07-01  9:14 ` Peter Hüwe
  2009-07-01  9:44 ` [PATCH] mtd: adding __init/__exit macros to init/exitfunctions Jiri Kosina
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Hüwe @ 2009-07-01  9:14 UTC (permalink / raw)
  To: kernel-janitors

Am Freitag 12 Juni 2009 11:03:19 schrieb Jiri Kosina:
> [ CCing dmmw2 -- please either Ack the patch so that I can take it through
>   trivial tree, or take it through your tree. Thanks.

Hi Jiri,

any updates on this patch yet? :)
Should I resubmit it with all the addresses from the new get_maintainer 
script? 

Thanks,
Peter

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mtd: adding __init/__exit macros to init/exitfunctions
  2009-06-11  0:23 [PATCH] mtd: adding __init/__exit macros to init/exitfunctions of mtd drivers Peter Hüwe
                   ` (2 preceding siblings ...)
  2009-07-01  9:14 ` Peter Hüwe
@ 2009-07-01  9:44 ` Jiri Kosina
  3 siblings, 0 replies; 5+ messages in thread
From: Jiri Kosina @ 2009-07-01  9:44 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: TEXT/PLAIN, Size: 379 bytes --]

On Wed, 1 Jul 2009, Peter Hüwe wrote:

> > [ CCing dmmw2 -- please either Ack the patch so that I can take it through
> >   trivial tree, or take it through your tree. Thanks.
> any updates on this patch yet? :) Should I resubmit it with all the 
> addresses from the new get_maintainer script?

I have applied the patch to trivial queue now.

Thanks,

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-01  9:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-11  0:23 [PATCH] mtd: adding __init/__exit macros to init/exitfunctions of mtd drivers Peter Hüwe
2009-06-12  9:03 ` [PATCH] mtd: adding __init/__exit macros to init/exitfunctions Jiri Kosina
2009-06-22 22:00 ` [PATCH] mtd: adding __init/__exit macros to init/exitfunctions of mtd drivers Peter Huewe
2009-07-01  9:14 ` Peter Hüwe
2009-07-01  9:44 ` [PATCH] mtd: adding __init/__exit macros to init/exitfunctions Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox