diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2006-12-08 05:38:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:55 -0500 |
commit | 40e82652128f67ffc2d8117e186736a92a15d64c (patch) | |
tree | d1d52e5a20e3fa42f867b5f9a6ec682dde8d82a3 /drivers/char | |
parent | 60be481089524b88fc777433494c6842f1f652a4 (diff) |
[PATCH] Char: stallion, mark functions as init
Use __init macro for functions, that may be freed after initialization.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/stallion.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c index 639a0569e6f2..c476da100b00 100644 --- a/drivers/char/stallion.c +++ b/drivers/char/stallion.c | |||
@@ -700,7 +700,7 @@ static struct class *stallion_class; | |||
700 | * Check for any arguments passed in on the module load command line. | 700 | * Check for any arguments passed in on the module load command line. |
701 | */ | 701 | */ |
702 | 702 | ||
703 | static void stl_argbrds(void) | 703 | static void __init stl_argbrds(void) |
704 | { | 704 | { |
705 | struct stlconf conf; | 705 | struct stlconf conf; |
706 | struct stlbrd *brdp; | 706 | struct stlbrd *brdp; |
@@ -767,7 +767,7 @@ static unsigned long stl_atol(char *str) | |||
767 | * Parse the supplied argument string, into the board conf struct. | 767 | * Parse the supplied argument string, into the board conf struct. |
768 | */ | 768 | */ |
769 | 769 | ||
770 | static int stl_parsebrd(struct stlconf *confp, char **argp) | 770 | static int __init stl_parsebrd(struct stlconf *confp, char **argp) |
771 | { | 771 | { |
772 | char *sp; | 772 | char *sp; |
773 | int i; | 773 | int i; |
@@ -2014,7 +2014,7 @@ static int __init stl_initports(struct stlbrd *brdp, struct stlpanel *panelp) | |||
2014 | * Try to find and initialize an EasyIO board. | 2014 | * Try to find and initialize an EasyIO board. |
2015 | */ | 2015 | */ |
2016 | 2016 | ||
2017 | static int stl_initeio(struct stlbrd *brdp) | 2017 | static int __init stl_initeio(struct stlbrd *brdp) |
2018 | { | 2018 | { |
2019 | struct stlpanel *panelp; | 2019 | struct stlpanel *panelp; |
2020 | unsigned int status; | 2020 | unsigned int status; |
@@ -2155,7 +2155,7 @@ static int stl_initeio(struct stlbrd *brdp) | |||
2155 | * dealing with all types of ECH board. | 2155 | * dealing with all types of ECH board. |
2156 | */ | 2156 | */ |
2157 | 2157 | ||
2158 | static int stl_initech(struct stlbrd *brdp) | 2158 | static int __init stl_initech(struct stlbrd *brdp) |
2159 | { | 2159 | { |
2160 | struct stlpanel *panelp; | 2160 | struct stlpanel *panelp; |
2161 | unsigned int status, nxtid, ioaddr, conflict; | 2161 | unsigned int status, nxtid, ioaddr, conflict; |
@@ -2414,7 +2414,7 @@ static int __init stl_brdinit(struct stlbrd *brdp) | |||
2414 | * Find the next available board number that is free. | 2414 | * Find the next available board number that is free. |
2415 | */ | 2415 | */ |
2416 | 2416 | ||
2417 | static int stl_getbrdnr(void) | 2417 | static int __init stl_getbrdnr(void) |
2418 | { | 2418 | { |
2419 | int i; | 2419 | int i; |
2420 | 2420 | ||
@@ -2438,7 +2438,7 @@ static int stl_getbrdnr(void) | |||
2438 | * configuration space. | 2438 | * configuration space. |
2439 | */ | 2439 | */ |
2440 | 2440 | ||
2441 | static int stl_initpcibrd(int brdtype, struct pci_dev *devp) | 2441 | static int __init stl_initpcibrd(int brdtype, struct pci_dev *devp) |
2442 | { | 2442 | { |
2443 | struct stlbrd *brdp; | 2443 | struct stlbrd *brdp; |
2444 | 2444 | ||
@@ -2500,7 +2500,7 @@ static int stl_initpcibrd(int brdtype, struct pci_dev *devp) | |||
2500 | */ | 2500 | */ |
2501 | 2501 | ||
2502 | 2502 | ||
2503 | static int stl_findpcibrds(void) | 2503 | static int __init stl_findpcibrds(void) |
2504 | { | 2504 | { |
2505 | struct pci_dev *dev = NULL; | 2505 | struct pci_dev *dev = NULL; |
2506 | int i, rc; | 2506 | int i, rc; |
@@ -2536,7 +2536,7 @@ static int stl_findpcibrds(void) | |||
2536 | * since the initial search and setup is too different. | 2536 | * since the initial search and setup is too different. |
2537 | */ | 2537 | */ |
2538 | 2538 | ||
2539 | static int stl_initbrds(void) | 2539 | static int __init stl_initbrds(void) |
2540 | { | 2540 | { |
2541 | struct stlbrd *brdp; | 2541 | struct stlbrd *brdp; |
2542 | struct stlconf *confp; | 2542 | struct stlconf *confp; |