[<prev] [next>] [day] [month] [year] [list]
Message-Id: <201003031132.11925.hartleys@visionengravers.com>
Date: Wed, 3 Mar 2010 11:32:11 -0700
From: H Hartley Sweeten <hartleys@...ionengravers.com>
To: Linux Kernel <linux-kernel@...r.kernel.org>
Cc: greg@...ah.com, ss@....gov.au
Subject: [PATCH] staging/dt3155: fix build error caused by removing TRUE / FALSE defines
TRUE and FALSE are also used in the wait_ibsyclr function. This will cause
a build error due to the patch that removes those defines. Fix this by
returning proper error codes.
Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
Cc: Greg Kroah-Hartman <greg@...ah.com>
Cc: Scott Smedley <ss@....gov.au>
---
diff --git a/drivers/staging/dt3155/dt3155_io.c b/drivers/staging/dt3155/dt3155_io.c
index 6b9c685..38f343c 100644
--- a/drivers/staging/dt3155/dt3155_io.c
+++ b/drivers/staging/dt3155/dt3155_io.c
@@ -88,9 +88,9 @@ static int wait_ibsyclr(u8 *lpReg)
/* if NEW_CYCLE didn't clear */
/* TIMEOUT ERROR */
dt3155_errno = DT_ERR_I2C_TIMEOUT;
- return FALSE;
+ return -ETIMEDOUT;
} else
- return TRUE; /* no error */
+ return 0;
}
/*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists