diff options
-rw-r--r-- | drivers/platform/x86/intel_scu_ipc.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 */ | |||
148 | return -ETIMEDOUT; | 148 | return -ETIMEDOUT; |
149 | } | 149 | } |
150 | } | 150 | } |
151 | return (status >> 1) & 1; | 151 | if ((status >> 1) & 1) |
152 | return -EIO; | ||
153 | |||
154 | return 0; | ||
152 | } | 155 | } |
153 | 156 | ||
154 | /* Read/Write power control(PMIC in Langwell, MSIC in PenWell) registers */ | 157 | /* Read/Write power control(PMIC in Langwell, MSIC in PenWell) registers */ |