aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/gazel.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-10-31 03:42:07 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-04-20 18:22:31 -0400
commit8349304d12cf1313bdbd6eb2083701d86809be24 (patch)
tree599d43c202cda35b80966d9f364559484ca4145a /drivers/isdn/hisax/gazel.c
parentd38c8475b4f3a684ac673dcedc88ffdb17b74882 (diff)
[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>
Diffstat (limited to 'drivers/isdn/hisax/gazel.c')
-rw-r--r--drivers/isdn/hisax/gazel.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/isdn/hisax/gazel.c b/drivers/isdn/hisax/gazel.c
index f66620ad8e7c..0ea3b4607680 100644
--- a/drivers/isdn/hisax/gazel.c
+++ b/drivers/isdn/hisax/gazel.c
@@ -19,7 +19,6 @@
19#include "ipac.h" 19#include "ipac.h"
20#include <linux/pci.h> 20#include <linux/pci.h>
21 21
22extern const char *CardType[];
23static const char *gazel_revision = "$Revision: 2.19.2.4 $"; 22static const char *gazel_revision = "$Revision: 2.19.2.4 $";
24 23
25#define R647 1 24#define R647 1
@@ -479,8 +478,8 @@ reserve_regions(struct IsdnCard *card, struct IsdnCardState *cs)
479 return 0; 478 return 0;
480 479
481 error: 480 error:
482 printk(KERN_WARNING "Gazel: %s io ports 0x%x-0x%x already in use\n", 481 printk(KERN_WARNING "Gazel: io ports 0x%x-0x%x already in use\n",
483 CardType[cs->typ], adr, adr + len); 482 adr, adr + len);
484 return 1; 483 return 1;
485} 484}
486 485