Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43729
b: refs/heads/master
c: a00f33f
h: refs/heads/master
i:
  43727: 950905d
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Dec 8, 2006
1 parent eea090f commit 7612e78
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1328d737f510e9933a621f66aa8de81c02b647a7
refs/heads/master: a00f33f3ab6385ef24f6e88bf970e8ac32b24099
13 changes: 11 additions & 2 deletions trunk/drivers/char/istallion.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ MODULE_PARM_DESC(board2, "Board 2 config -> name[,ioaddr[,memaddr]");
module_param_array(board3, charp, NULL, 0);
MODULE_PARM_DESC(board3, "Board 3 config -> name[,ioaddr[,memaddr]");

#if STLI_EISAPROBE != 0
/*
* Set up a default memory address table for EISA board probing.
* The default addresses are all bellow 1Mbyte, which has to be the
Expand All @@ -372,6 +373,7 @@ static unsigned long stli_eisamemprobeaddrs[] = {
};

static int stli_eisamempsize = ARRAY_SIZE(stli_eisamemprobeaddrs);
#endif

/*
* Define the Stallion PCI vendor and device IDs.
Expand Down Expand Up @@ -684,7 +686,9 @@ static struct stliport *stli_getport(unsigned int brdnr, unsigned int panelnr, u

static int stli_initecp(struct stlibrd *brdp);
static int stli_initonb(struct stlibrd *brdp);
#if STLI_EISAPROBE != 0
static int stli_eisamemprobe(struct stlibrd *brdp);
#endif
static int stli_initports(struct stlibrd *brdp);

/*****************************************************************************/
Expand Down Expand Up @@ -3711,6 +3715,7 @@ static int __devinit stli_brdinit(struct stlibrd *brdp)
return 0;
}

#if STLI_EISAPROBE != 0
/*****************************************************************************/

/*
Expand Down Expand Up @@ -3804,6 +3809,7 @@ static int stli_eisamemprobe(struct stlibrd *brdp)
}
return 0;
}
#endif

static int stli_getbrdnr(void)
{
Expand All @@ -3819,6 +3825,7 @@ static int stli_getbrdnr(void)
return -1;
}

#if STLI_EISAPROBE != 0
/*****************************************************************************/

/*
Expand Down Expand Up @@ -3894,6 +3901,9 @@ static int stli_findeisabrds(void)

return 0;
}
#else
static inline int stli_findeisabrds(void) { return 0; }
#endif

/*****************************************************************************/

Expand Down Expand Up @@ -4019,8 +4029,7 @@ static int stli_initbrds(void)
stli_brdinit(brdp);
}

if (STLI_EISAPROBE)
stli_findeisabrds();
stli_findeisabrds();

retval = pci_register_driver(&stli_pcidriver);
/* TODO: check retval and do something */
Expand Down

0 comments on commit 7612e78

Please sign in to comment.