From: Hong Liu Date: Mon, 26 Jul 2010 09:06:12 +0000 (+0100) Subject: intel_scu_ipc: return -EIO for error condition in busy_loop X-Git-Tag: v2.6.36-rc1~579^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=77e01d6d177f060f466417fa32fc3e1381a73502;p=karo-tx-linux.git intel_scu_ipc: return -EIO for error condition in busy_loop Signed-off-by: Hong Liu Signed-off-by: Alan Cox Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel_scu_ipc.c index 84a2d4bfdec8..23b6d46a4b8f 100644 --- a/drivers/platform/x86/intel_scu_ipc.c +++ b/drivers/platform/x86/intel_scu_ipc.c @@ -148,7 +148,10 @@ static inline int busy_loop(void) /* Wait till scu status is busy */ return -ETIMEDOUT; } } - return (status >> 1) & 1; + if ((status >> 1) & 1) + return -EIO; + + return 0; } /* Read/Write power control(PMIC in Langwell, MSIC in PenWell) registers */