diff mbox series

fpga: print return value in machxo2_cleanup()

Message ID 20240925105725.1562327-1-jy7805.heo@samsung.com (mailing list archive)
State New
Headers show
Series fpga: print return value in machxo2_cleanup() | expand

Commit Message

Joonyoung Heo Sept. 25, 2024, 10:57 a.m. UTC
From: Heo Joonyoung <jy7805.heo@samsung.com>

print return value to check where it failed.

Signed-off-by: Heo Joonyoung <jy7805.heo@samsung.com>
---
 drivers/fpga/machxo2-spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/fpga/machxo2-spi.c b/drivers/fpga/machxo2-spi.c
index 905607992a12..c9eaf313e9b8 100644
--- a/drivers/fpga/machxo2-spi.c
+++ b/drivers/fpga/machxo2-spi.c
@@ -166,7 +166,7 @@  static int machxo2_cleanup(struct fpga_manager *mgr)
 
 	return 0;
 fail:
-	dev_err(&mgr->dev, "Cleanup failed\n");
+	dev_err(&mgr->dev, "Cleanup failed, ret=%d\n", ret);
 
 	return ret;
 }