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 --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;
}
--
2.25.1