Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5df0a29d authored by Zach Brown's avatar Zach Brown Committed by Linus Torvalds
Browse files

[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: default avatarZach Brown <zach.brown@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f2b9ecc4
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -224,14 +224,16 @@ probe_ti_parallel(int minor)
{
	int i;
	int seq[] = { 0x00, 0x20, 0x10, 0x30 };
	int data;

	for (i = 3; i >= 0; i--) {
		outbyte(3, minor);
		outbyte(i, minor);
		udelay(delay);
		data = inbyte(minor) & 0x30;
		pr_debug("tipar: Probing -> %i: 0x%02x 0x%02x\n", i,
			data & 0x30, seq[i]);
		if ((inbyte(minor) & 0x30) != seq[i]) {
			data, seq[i]);
		if (data != seq[i]) {
			outbyte(3, minor);
			return -1;
		}