mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 20:56:23 +00:00
[PATCH] pr_debug: tipar: repair nonexistant pr_debug argument use
tipar: repair nonexistant pr_debug argument use I guessed what the pr_debug meant by 'data'. Signed-off-by: Zach Brown <zach.brown@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
f2b9ecc416
commit
5df0a29d9c
1 changed files with 4 additions and 2 deletions
|
@ -224,14 +224,16 @@ probe_ti_parallel(int minor)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int seq[] = { 0x00, 0x20, 0x10, 0x30 };
|
int seq[] = { 0x00, 0x20, 0x10, 0x30 };
|
||||||
|
int data;
|
||||||
|
|
||||||
for (i = 3; i >= 0; i--) {
|
for (i = 3; i >= 0; i--) {
|
||||||
outbyte(3, minor);
|
outbyte(3, minor);
|
||||||
outbyte(i, minor);
|
outbyte(i, minor);
|
||||||
udelay(delay);
|
udelay(delay);
|
||||||
|
data = inbyte(minor) & 0x30;
|
||||||
pr_debug("tipar: Probing -> %i: 0x%02x 0x%02x\n", i,
|
pr_debug("tipar: Probing -> %i: 0x%02x 0x%02x\n", i,
|
||||||
data & 0x30, seq[i]);
|
data, seq[i]);
|
||||||
if ((inbyte(minor) & 0x30) != seq[i]) {
|
if (data != seq[i]) {
|
||||||
outbyte(3, minor);
|
outbyte(3, minor);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue