diff options
Diffstat (limited to 'drivers/block/paride/bpck6.c')
-rw-r--r-- | drivers/block/paride/bpck6.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/drivers/block/paride/bpck6.c b/drivers/block/paride/bpck6.c index 41a237c5957d..ad124525ac23 100644 --- a/drivers/block/paride/bpck6.c +++ b/drivers/block/paride/bpck6.c | |||
@@ -31,10 +31,7 @@ static int verbose; /* set this to 1 to see debugging messages and whatnot */ | |||
31 | #include <linux/slab.h> | 31 | #include <linux/slab.h> |
32 | #include <linux/types.h> | 32 | #include <linux/types.h> |
33 | #include <asm/io.h> | 33 | #include <asm/io.h> |
34 | |||
35 | #if defined(CONFIG_PARPORT_MODULE)||defined(CONFIG_PARPORT) | ||
36 | #include <linux/parport.h> | 34 | #include <linux/parport.h> |
37 | #endif | ||
38 | 35 | ||
39 | #include "ppc6lnx.c" | 36 | #include "ppc6lnx.c" |
40 | #include "paride.h" | 37 | #include "paride.h" |
@@ -139,11 +136,6 @@ static int bpck6_test_port ( PIA *pi ) /* check for 8-bit port */ | |||
139 | PPCSTRUCT(pi)->ppc_id=pi->unit; | 136 | PPCSTRUCT(pi)->ppc_id=pi->unit; |
140 | PPCSTRUCT(pi)->lpt_addr=pi->port; | 137 | PPCSTRUCT(pi)->lpt_addr=pi->port; |
141 | 138 | ||
142 | #ifdef CONFIG_PARPORT_PC_MODULE | ||
143 | #define CONFIG_PARPORT_PC | ||
144 | #endif | ||
145 | |||
146 | #ifdef CONFIG_PARPORT_PC | ||
147 | /* look at the parport device to see if what modes we can use */ | 139 | /* look at the parport device to see if what modes we can use */ |
148 | if(((struct pardevice *)(pi->pardev))->port->modes & | 140 | if(((struct pardevice *)(pi->pardev))->port->modes & |
149 | (PARPORT_MODE_EPP) | 141 | (PARPORT_MODE_EPP) |
@@ -161,11 +153,6 @@ static int bpck6_test_port ( PIA *pi ) /* check for 8-bit port */ | |||
161 | { | 153 | { |
162 | return 1; | 154 | return 1; |
163 | } | 155 | } |
164 | #else | ||
165 | /* there is no way of knowing what kind of port we have | ||
166 | default to the highest mode possible */ | ||
167 | return 5; | ||
168 | #endif | ||
169 | } | 156 | } |
170 | 157 | ||
171 | static int bpck6_probe_unit ( PIA *pi ) | 158 | static int bpck6_probe_unit ( PIA *pi ) |
@@ -265,12 +252,12 @@ static int __init bpck6_init(void) | |||
265 | printk(KERN_INFO "bpck6: Copyright 2001 by Micro Solutions, Inc., DeKalb IL. USA\n"); | 252 | printk(KERN_INFO "bpck6: Copyright 2001 by Micro Solutions, Inc., DeKalb IL. USA\n"); |
266 | if(verbose) | 253 | if(verbose) |
267 | printk(KERN_DEBUG "bpck6: verbose debug enabled.\n"); | 254 | printk(KERN_DEBUG "bpck6: verbose debug enabled.\n"); |
268 | return pi_register(&bpck6) - 1; | 255 | return paride_register(&bpck6); |
269 | } | 256 | } |
270 | 257 | ||
271 | static void __exit bpck6_exit(void) | 258 | static void __exit bpck6_exit(void) |
272 | { | 259 | { |
273 | pi_unregister(&bpck6); | 260 | paride_unregister(&bpck6); |
274 | } | 261 | } |
275 | 262 | ||
276 | MODULE_LICENSE("GPL"); | 263 | MODULE_LICENSE("GPL"); |