diff options
Diffstat (limited to 'drivers/isdn/hisax/diva.c')
-rw-r--r-- | drivers/isdn/hisax/diva.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/drivers/isdn/hisax/diva.c b/drivers/isdn/hisax/diva.c index 62a2945fa7f2..8d0cf6e4dc00 100644 --- a/drivers/isdn/hisax/diva.c +++ b/drivers/isdn/hisax/diva.c | |||
@@ -904,7 +904,7 @@ Diva_card_msg(struct IsdnCardState *cs, int mt, void *arg) | |||
904 | return (0); | 904 | return (0); |
905 | } | 905 | } |
906 | 906 | ||
907 | static int __devinit setup_diva_common(struct IsdnCardState *cs) | 907 | static int setup_diva_common(struct IsdnCardState *cs) |
908 | { | 908 | { |
909 | int bytecnt; | 909 | int bytecnt; |
910 | u_char val; | 910 | u_char val; |
@@ -997,7 +997,7 @@ static int __devinit setup_diva_common(struct IsdnCardState *cs) | |||
997 | 997 | ||
998 | #ifdef CONFIG_ISA | 998 | #ifdef CONFIG_ISA |
999 | 999 | ||
1000 | static int __devinit setup_diva_isa(struct IsdnCard *card) | 1000 | static int setup_diva_isa(struct IsdnCard *card) |
1001 | { | 1001 | { |
1002 | struct IsdnCardState *cs = card->cs; | 1002 | struct IsdnCardState *cs = card->cs; |
1003 | u_char val; | 1003 | u_char val; |
@@ -1033,7 +1033,7 @@ static int __devinit setup_diva_isa(struct IsdnCard *card) | |||
1033 | 1033 | ||
1034 | #else /* if !CONFIG_ISA */ | 1034 | #else /* if !CONFIG_ISA */ |
1035 | 1035 | ||
1036 | static int __devinit setup_diva_isa(struct IsdnCard *card) | 1036 | static int setup_diva_isa(struct IsdnCard *card) |
1037 | { | 1037 | { |
1038 | return (-1); /* card not found; continue search */ | 1038 | return (-1); /* card not found; continue search */ |
1039 | } | 1039 | } |
@@ -1041,7 +1041,7 @@ static int __devinit setup_diva_isa(struct IsdnCard *card) | |||
1041 | #endif /* CONFIG_ISA */ | 1041 | #endif /* CONFIG_ISA */ |
1042 | 1042 | ||
1043 | #ifdef __ISAPNP__ | 1043 | #ifdef __ISAPNP__ |
1044 | static struct isapnp_device_id diva_ids[] __devinitdata = { | 1044 | static struct isapnp_device_id diva_ids[] = { |
1045 | { ISAPNP_VENDOR('G', 'D', 'I'), ISAPNP_FUNCTION(0x51), | 1045 | { ISAPNP_VENDOR('G', 'D', 'I'), ISAPNP_FUNCTION(0x51), |
1046 | ISAPNP_VENDOR('G', 'D', 'I'), ISAPNP_FUNCTION(0x51), | 1046 | ISAPNP_VENDOR('G', 'D', 'I'), ISAPNP_FUNCTION(0x51), |
1047 | (unsigned long) "Diva picola" }, | 1047 | (unsigned long) "Diva picola" }, |
@@ -1063,10 +1063,10 @@ static struct isapnp_device_id diva_ids[] __devinitdata = { | |||
1063 | { 0, } | 1063 | { 0, } |
1064 | }; | 1064 | }; |
1065 | 1065 | ||
1066 | static struct isapnp_device_id *ipid __devinitdata = &diva_ids[0]; | 1066 | static struct isapnp_device_id *ipid = &diva_ids[0]; |
1067 | static struct pnp_card *pnp_c __devinitdata = NULL; | 1067 | static struct pnp_card *pnp_c = NULL; |
1068 | 1068 | ||
1069 | static int __devinit setup_diva_isapnp(struct IsdnCard *card) | 1069 | static int setup_diva_isapnp(struct IsdnCard *card) |
1070 | { | 1070 | { |
1071 | struct IsdnCardState *cs = card->cs; | 1071 | struct IsdnCardState *cs = card->cs; |
1072 | struct pnp_dev *pnp_d; | 1072 | struct pnp_dev *pnp_d; |
@@ -1141,7 +1141,7 @@ static int __devinit setup_diva_isapnp(struct IsdnCard *card) | |||
1141 | 1141 | ||
1142 | #else /* if !ISAPNP */ | 1142 | #else /* if !ISAPNP */ |
1143 | 1143 | ||
1144 | static int __devinit setup_diva_isapnp(struct IsdnCard *card) | 1144 | static int setup_diva_isapnp(struct IsdnCard *card) |
1145 | { | 1145 | { |
1146 | return (-1); /* card not found; continue search */ | 1146 | return (-1); /* card not found; continue search */ |
1147 | } | 1147 | } |
@@ -1149,12 +1149,12 @@ static int __devinit setup_diva_isapnp(struct IsdnCard *card) | |||
1149 | #endif /* ISAPNP */ | 1149 | #endif /* ISAPNP */ |
1150 | 1150 | ||
1151 | #ifdef CONFIG_PCI | 1151 | #ifdef CONFIG_PCI |
1152 | static struct pci_dev *dev_diva __devinitdata = NULL; | 1152 | static struct pci_dev *dev_diva = NULL; |
1153 | static struct pci_dev *dev_diva_u __devinitdata = NULL; | 1153 | static struct pci_dev *dev_diva_u = NULL; |
1154 | static struct pci_dev *dev_diva201 __devinitdata = NULL; | 1154 | static struct pci_dev *dev_diva201 = NULL; |
1155 | static struct pci_dev *dev_diva202 __devinitdata = NULL; | 1155 | static struct pci_dev *dev_diva202 = NULL; |
1156 | 1156 | ||
1157 | static int __devinit setup_diva_pci(struct IsdnCard *card) | 1157 | static int setup_diva_pci(struct IsdnCard *card) |
1158 | { | 1158 | { |
1159 | struct IsdnCardState *cs = card->cs; | 1159 | struct IsdnCardState *cs = card->cs; |
1160 | 1160 | ||
@@ -1231,15 +1231,14 @@ static int __devinit setup_diva_pci(struct IsdnCard *card) | |||
1231 | 1231 | ||
1232 | #else /* if !CONFIG_PCI */ | 1232 | #else /* if !CONFIG_PCI */ |
1233 | 1233 | ||
1234 | static int __devinit setup_diva_pci(struct IsdnCard *card) | 1234 | static int setup_diva_pci(struct IsdnCard *card) |
1235 | { | 1235 | { |
1236 | return (-1); /* card not found; continue search */ | 1236 | return (-1); /* card not found; continue search */ |
1237 | } | 1237 | } |
1238 | 1238 | ||
1239 | #endif /* CONFIG_PCI */ | 1239 | #endif /* CONFIG_PCI */ |
1240 | 1240 | ||
1241 | int __devinit | 1241 | int setup_diva(struct IsdnCard *card) |
1242 | setup_diva(struct IsdnCard *card) | ||
1243 | { | 1242 | { |
1244 | int rc, have_card = 0; | 1243 | int rc, have_card = 0; |
1245 | struct IsdnCardState *cs = card->cs; | 1244 | struct IsdnCardState *cs = card->cs; |