From: Andy Shevchenko Date: Mon, 5 Sep 2022 08:23:04 +0000 (+0800) Subject: bus: hisi_lpc: Correct error code for timeout X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5e3e70b8e1ae98358d1534e27b0a8259ce3efee8;p=linux.git 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 Reviewed-by: Rafael J. Wysocki Signed-off-by: John Garry Signed-off-by: Wei Xu --- diff --git a/drivers/bus/hisi_lpc.c b/drivers/bus/hisi_lpc.c index 03d4d96ff7947..a6513a571d7bb 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; } /*