Skip to contentSkip to conversation

staging/dt3155: fix build error caused by removing TRUE / FALSE defines

PATCH New H Hartley Sweeten 1 participant 1 message Mar 3, 2010 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Cc Greg Kroah-Hartman <[email protected]>
Cc Scott Smedley <[email protected]>

---

drivers/staging/dt3155/dt3155_io.c +2 -2
index 6b9c685..38f343c 100644
@@ -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;
 }
 
 /*