Prev: [PATCH] staging/dt3155: fix build error caused by {write|read}l change
Next: [PATCH] usb/serial: Fix module name typo for qcaux Kconfig entry.
From: H Hartley Sweeten on 3 Mar 2010 13:40 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(a)visionengravers.com> Cc: Greg Kroah-Hartman <greg(a)kroah.com> Cc: Scott Smedley <ss(a)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; } /* -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |