accel/habanalabs: refactor error info reset
authorDani Liberman <dliberman@habana.ai>
Mon, 22 May 2023 14:15:36 +0000 (17:15 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 8 Jun 2023 09:35:56 +0000 (12:35 +0300)
commite6f49e96bc57d34fc0f617f37bfdf62a9b58d2c2
treee554d6491fc898f29249390ba612ba8096dcef4d
parentfac91dd54f3b6f5dbd20c1cb26e59eceb128ca42
accel/habanalabs: refactor error info reset

Moved error info reset code to single function for future use from
other places in the driver.

Signed-off-by: Dani Liberman <dliberman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/device.c
drivers/accel/habanalabs/common/habanalabs.h
drivers/accel/habanalabs/common/habanalabs_drv.c