[ISDN] Hisax: eliminate many unnecessary references to CardType[]
For the vast majority of CardType[card->typ] uses (but not all!), the string is constant for each driver. Therefore, we may replace CardType[card->typ] with the actual string describing the driver, making each printk() a bit more simple. This also has the nice, intended side effect of greatly reducing external references to hisax global CardType[]. This will be of value once the ISDN drivers are converted to the ISA/PCI/PNP hotplug APIs. Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:

zatwierdzone przez
Jeff Garzik

rodzic
d38c8475b4
commit
8349304d12
@@ -16,8 +16,6 @@
|
||||
#include "hfc_2bs0.h"
|
||||
#include "isdnl1.h"
|
||||
|
||||
extern const char *CardType[];
|
||||
|
||||
static const char *TeleInt_revision = "$Revision: 1.16.2.5 $";
|
||||
|
||||
#define byteout(addr,val) outb(val,addr)
|
||||
@@ -286,8 +284,7 @@ setup_TeleInt(struct IsdnCard *card)
|
||||
init_timer(&cs->hw.hfc.timer);
|
||||
if (!request_region(cs->hw.hfc.addr, 2, "TeleInt isdn")) {
|
||||
printk(KERN_WARNING
|
||||
"HiSax: %s config port %x-%x already in use\n",
|
||||
CardType[card->typ],
|
||||
"HiSax: TeleInt config port %x-%x already in use\n",
|
||||
cs->hw.hfc.addr,
|
||||
cs->hw.hfc.addr + 2);
|
||||
return (0);
|
||||
|
Reference in New Issue
Block a user