diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2006-12-08 05:39:00 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:58 -0500 |
commit | cda5265e7c5ba5f23c83f2f0693fef392b39e7e5 (patch) | |
tree | 51411e280845c69f160865b997a8e11bfee478c1 | |
parent | 4a7cb69badb4ca11fe0ba09aafac5c284922fc8f (diff) |
[PATCH] Char: sx, mark functions as devinit
Mark as much as possible functions as __devinit to free them after driver
initialization (if no hotplug).
Cc: <R.E.Wolff@BitWizard.nl>
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>
-rw-r--r-- | drivers/char/sx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/sx.c b/drivers/char/sx.c index 5fb79f59040f..a85f5eb85585 100644 --- a/drivers/char/sx.c +++ b/drivers/char/sx.c | |||
@@ -2034,7 +2034,7 @@ static int sx_init_board (struct sx_board *board) | |||
2034 | } | 2034 | } |
2035 | 2035 | ||
2036 | 2036 | ||
2037 | static void printheader(void) | 2037 | static void __devinit printheader(void) |
2038 | { | 2038 | { |
2039 | static int header_printed; | 2039 | static int header_printed; |
2040 | 2040 | ||
@@ -2047,7 +2047,7 @@ static void printheader(void) | |||
2047 | } | 2047 | } |
2048 | 2048 | ||
2049 | 2049 | ||
2050 | static int probe_sx (struct sx_board *board) | 2050 | static int __devinit probe_sx (struct sx_board *board) |
2051 | { | 2051 | { |
2052 | struct vpd_prom vpdp; | 2052 | struct vpd_prom vpdp; |
2053 | char *p; | 2053 | char *p; |
@@ -2125,7 +2125,7 @@ static int probe_sx (struct sx_board *board) | |||
2125 | card. 0xe0000 and 0xf0000 are taken by the BIOS. That only leaves | 2125 | card. 0xe0000 and 0xf0000 are taken by the BIOS. That only leaves |
2126 | 0xc0000, 0xc8000, 0xd0000 and 0xd8000 . */ | 2126 | 0xc0000, 0xc8000, 0xd0000 and 0xd8000 . */ |
2127 | 2127 | ||
2128 | static int probe_si (struct sx_board *board) | 2128 | static int __devinit probe_si (struct sx_board *board) |
2129 | { | 2129 | { |
2130 | int i; | 2130 | int i; |
2131 | 2131 | ||
@@ -2364,7 +2364,7 @@ static void __exit sx_release_drivers(void) | |||
2364 | EEprom. As the bit is read/write for the CPU, we can fix it here, | 2364 | EEprom. As the bit is read/write for the CPU, we can fix it here, |
2365 | if we detect that it isn't set correctly. -- REW */ | 2365 | if we detect that it isn't set correctly. -- REW */ |
2366 | 2366 | ||
2367 | static void fix_sx_pci (struct pci_dev *pdev, struct sx_board *board) | 2367 | static void __devinit fix_sx_pci(struct pci_dev *pdev, struct sx_board *board) |
2368 | { | 2368 | { |
2369 | unsigned int hwbase; | 2369 | unsigned int hwbase; |
2370 | void __iomem *rebase; | 2370 | void __iomem *rebase; |