Skip to content

Commit

Permalink
[PATCH] Char: sx, mark functions as devinit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Dec 8, 2006
1 parent 4a7cb69 commit cda5265
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/char/sx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,7 @@ static int sx_init_board (struct sx_board *board)
}


static void printheader(void)
static void __devinit printheader(void)
{
static int header_printed;

Expand All @@ -2047,7 +2047,7 @@ static void printheader(void)
}


static int probe_sx (struct sx_board *board)
static int __devinit probe_sx (struct sx_board *board)
{
struct vpd_prom vpdp;
char *p;
Expand Down Expand Up @@ -2125,7 +2125,7 @@ static int probe_sx (struct sx_board *board)
card. 0xe0000 and 0xf0000 are taken by the BIOS. That only leaves
0xc0000, 0xc8000, 0xd0000 and 0xd8000 . */

static int probe_si (struct sx_board *board)
static int __devinit probe_si (struct sx_board *board)
{
int i;

Expand Down Expand Up @@ -2364,7 +2364,7 @@ static void __exit sx_release_drivers(void)
EEprom. As the bit is read/write for the CPU, we can fix it here,
if we detect that it isn't set correctly. -- REW */

static void fix_sx_pci (struct pci_dev *pdev, struct sx_board *board)
static void __devinit fix_sx_pci(struct pci_dev *pdev, struct sx_board *board)
{
unsigned int hwbase;
void __iomem *rebase;
Expand Down

0 comments on commit cda5265

Please sign in to comment.