diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-09-05 16:23:04 +0800 |
---|---|---|
committer | Wei Xu <xuwei5@hisilicon.com> | 2022-09-08 02:27:29 +0000 |
commit | 5e3e70b8e1ae98358d1534e27b0a8259ce3efee8 (patch) | |
tree | b0f5908465d888610d4647c439990688b3721188 /drivers/bus/hisi_lpc.c | |
parent | 23bea44cd00c618dca7877366cf8a5340ac110e9 (diff) | |
download | linux-5e3e70b8e1ae98358d1534e27b0a8259ce3efee8.tar.gz linux-5e3e70b8e1ae98358d1534e27b0a8259ce3efee8.tar.bz2 linux-5e3e70b8e1ae98358d1534e27b0a8259ce3efee8.zip |
bus: hisi_lpc: Correct error code for timeout
The usual error code is -ETIMEDOUT, the currently used -ETIME is specific
for timers.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Diffstat (limited to 'drivers/bus/hisi_lpc.c')
-rw-r--r-- | drivers/bus/hisi_lpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/hisi_lpc.c b/drivers/bus/hisi_lpc.c index 03d4d96ff794..a6513a571d7b 100644 --- a/drivers/bus/hisi_lpc.c +++ b/drivers/bus/hisi_lpc.c @@ -85,7 +85,7 @@ static int wait_lpc_idle(void __iomem *mbase, unsigned int waitcnt) ndelay(LPC_NSEC_PERWAIT); } while (--waitcnt); - return -ETIME; + return -ETIMEDOUT; } /* |