Commit 0e30a0e2 authored by Valdis Kletnieks's avatar Valdis Kletnieks Committed by Linus Torvalds

[PATCH] #ifdef fixes for drivers/isdn/hifax/*

This patch changes a bunch of '#if CONFIG_PCI' to '#ifdef' instead,
to make the kernel source cleaner for compiling with 'gcc -Wundef'.
Signed-off-by: default avatarKarsten keil <kkeil@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 915ae009
......@@ -265,7 +265,7 @@ setup_bkm_a4t(struct IsdnCard *card)
char tmp[64];
u_int pci_memaddr = 0, found = 0;
I20_REGISTER_FILE *pI20_Regs;
#if CONFIG_PCI
#ifdef CONFIG_PCI
#endif
strcpy(tmp, bkm_a4t_revision);
......@@ -275,7 +275,7 @@ setup_bkm_a4t(struct IsdnCard *card)
} else
return (0);
#if CONFIG_PCI
#ifdef CONFIG_PCI
while ((dev_a4t = pci_find_device(PCI_VENDOR_ID_ZORAN,
PCI_DEVICE_ID_ZORAN_36120, dev_a4t))) {
u16 sub_sys;
......
......@@ -21,7 +21,7 @@
#include <linux/pci.h>
#include "bkm_ax.h"
#if CONFIG_PCI
#ifdef CONFIG_PCI
#define ATTEMPT_PCI_REMAPPING /* Required for PLX rev 1 */
......@@ -285,7 +285,7 @@ static u_char pci_irq __initdata = 0;
int __init
setup_sct_quadro(struct IsdnCard *card)
{
#if CONFIG_PCI
#ifdef CONFIG_PCI
struct IsdnCardState *cs = card->cs;
char tmp[64];
u_char pci_rev_id;
......
......@@ -1027,7 +1027,7 @@ setup_diva(struct IsdnCard *card)
}
}
#endif
#if CONFIG_PCI
#ifdef CONFIG_PCI
cs->subtyp = 0;
if ((dev_diva = pci_find_device(PCI_VENDOR_ID_EICON,
PCI_DEVICE_ID_EICON_DIVA20, dev_diva))) {
......
......@@ -1022,7 +1022,7 @@ setup_elsa(struct IsdnCard *card)
cs->hw.elsa.base,
cs->irq);
} else if (cs->typ == ISDN_CTYPE_ELSA_PCI) {
#if CONFIG_PCI
#ifdef CONFIG_PCI
cs->subtyp = 0;
if ((dev_qs1000 = pci_find_device(PCI_VENDOR_ID_ELSA,
PCI_DEVICE_ID_ELSA_MICROLINK, dev_qs1000))) {
......
......@@ -299,7 +299,7 @@ setup_enternow_pci(struct IsdnCard *card)
struct IsdnCardState *cs = card->cs;
char tmp[64];
#if CONFIG_PCI
#ifdef CONFIG_PCI
#ifdef __BIG_ENDIAN
#error "not running on big endian machines now"
#endif
......
......@@ -634,7 +634,7 @@ setup_gazel(struct IsdnCard *card)
return (0);
} else {
#if CONFIG_PCI
#ifdef CONFIG_PCI
if (setup_gazelpci(cs))
return (0);
#else
......
......@@ -65,7 +65,7 @@ static const PCI_ENTRY id_list[] =
};
#if CONFIG_PCI
#ifdef CONFIG_PCI
/******************************************/
/* free hardware resources used by driver */
......@@ -1655,7 +1655,7 @@ setup_hfcpci(struct IsdnCard *card)
#endif
strcpy(tmp, hfcpci_revision);
printk(KERN_INFO "HiSax: HFC-PCI driver Rev. %s\n", HiSax_getrev(tmp));
#if CONFIG_PCI
#ifdef CONFIG_PCI
cs->hw.hfcpci.int_s1 = 0;
cs->dc.hfcpci.ph_state = 0;
cs->hw.hfcpci.fifo = 255;
......
......@@ -309,7 +309,7 @@ setup_niccy(struct IsdnCard *card)
return (0);
}
} else {
#if CONFIG_PCI
#ifdef CONFIG_PCI
u_int pci_ioaddr;
cs->subtyp = 0;
if ((niccy_dev = pci_find_device(PCI_VENDOR_ID_SATSAGEM,
......
......@@ -167,7 +167,7 @@ setup_netjet_s(struct IsdnCard *card)
return(0);
test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags);
#if CONFIG_PCI
#ifdef CONFIG_PCI
for ( ;; )
{
......
......@@ -137,7 +137,7 @@ setup_netjet_u(struct IsdnCard *card)
int bytecnt;
struct IsdnCardState *cs = card->cs;
char tmp[64];
#if CONFIG_PCI
#ifdef CONFIG_PCI
#endif
#ifdef __BIG_ENDIAN
#error "not running on big endian machines now"
......@@ -148,7 +148,7 @@ setup_netjet_u(struct IsdnCard *card)
return(0);
test_and_clear_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags);
#if CONFIG_PCI
#ifdef CONFIG_PCI
for ( ;; )
{
......
......@@ -618,7 +618,7 @@ setup_sedlbauer(struct IsdnCard *card)
}
#endif
/* Probe for Sedlbauer speed pci */
#if CONFIG_PCI
#ifdef CONFIG_PCI
if ((dev_sedl = pci_find_device(PCI_VENDOR_ID_TIGERJET,
PCI_DEVICE_ID_TIGERJET_100, dev_sedl))) {
if (pci_enable_device(dev_sedl))
......
......@@ -300,7 +300,7 @@ setup_telespci(struct IsdnCard *card)
printk(KERN_INFO "HiSax: Teles/PCI driver Rev. %s\n", HiSax_getrev(tmp));
if (cs->typ != ISDN_CTYPE_TELESPCI)
return (0);
#if CONFIG_PCI
#ifdef CONFIG_PCI
if ((dev_tel = pci_find_device (PCI_VENDOR_ID_ZORAN, PCI_DEVICE_ID_ZORAN_36120, dev_tel))) {
if (pci_enable_device(dev_tel))
return(0);
......
......@@ -1012,7 +1012,7 @@ setup_w6692(struct IsdnCard *card)
printk(KERN_INFO "HiSax: W6692 driver Rev. %s\n", HiSax_getrev(tmp));
if (cs->typ != ISDN_CTYPE_W6692)
return (0);
#if CONFIG_PCI
#ifdef CONFIG_PCI
while (id_list[id_idx].vendor_id) {
dev_w6692 = pci_find_device(id_list[id_idx].vendor_id,
id_list[id_idx].device_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment