diff options
Diffstat (limited to 'drivers/char/tipar.c')
-rw-r--r-- | drivers/char/tipar.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/char/tipar.c b/drivers/char/tipar.c index d30dc09dbbc9..9df0ca1be0e3 100644 --- a/drivers/char/tipar.c +++ b/drivers/char/tipar.c | |||
@@ -224,14 +224,16 @@ probe_ti_parallel(int minor) | |||
224 | { | 224 | { |
225 | int i; | 225 | int i; |
226 | int seq[] = { 0x00, 0x20, 0x10, 0x30 }; | 226 | int seq[] = { 0x00, 0x20, 0x10, 0x30 }; |
227 | int data; | ||
227 | 228 | ||
228 | for (i = 3; i >= 0; i--) { | 229 | for (i = 3; i >= 0; i--) { |
229 | outbyte(3, minor); | 230 | outbyte(3, minor); |
230 | outbyte(i, minor); | 231 | outbyte(i, minor); |
231 | udelay(delay); | 232 | udelay(delay); |
233 | data = inbyte(minor) & 0x30; | ||
232 | pr_debug("tipar: Probing -> %i: 0x%02x 0x%02x\n", i, | 234 | pr_debug("tipar: Probing -> %i: 0x%02x 0x%02x\n", i, |
233 | data & 0x30, seq[i]); | 235 | data, seq[i]); |
234 | if ((inbyte(minor) & 0x30) != seq[i]) { | 236 | if (data != seq[i]) { |
235 | outbyte(3, minor); | 237 | outbyte(3, minor); |
236 | return -1; | 238 | return -1; |
237 | } | 239 | } |