* [PATCH] staging/dt3155: fix build error caused by removing TRUE / FALSE defines
@ 2010-03-03 18:32 H Hartley Sweeten
0 siblings, 0 replies; only message in thread
From: H Hartley Sweeten @ 2010-03-03 18:32 UTC (permalink / raw)
To: Linux Kernel; +Cc: greg, ss
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@visionengravers.com>
Cc: Greg Kroah-Hartman <greg@kroah.com>
Cc: Scott Smedley <ss@aao.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;
}
/*
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-03 18:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-03 18:32 [PATCH] staging/dt3155: fix build error caused by removing TRUE / FALSE defines H Hartley Sweeten
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.