Commit 80f5d373 authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Jon Hunter

ARM: omap2: gpmc-onenand: Print something useful on CS request failure

If CS request fails the current error message is rather unhelpful.
Fix it by printing the failing chip select and the error code.
Signed-off-by: default avatarEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Reviewed-by: default avatarJon Hunter <jon-hunter@ti.com>
Signed-off-by: default avatarJon Hunter <jon-hunter@ti.com>
parent 097c9dae
...@@ -379,7 +379,8 @@ void gpmc_onenand_init(struct omap_onenand_platform_data *_onenand_data) ...@@ -379,7 +379,8 @@ void gpmc_onenand_init(struct omap_onenand_platform_data *_onenand_data)
err = gpmc_cs_request(gpmc_onenand_data->cs, ONENAND_IO_SIZE, err = gpmc_cs_request(gpmc_onenand_data->cs, ONENAND_IO_SIZE,
(unsigned long *)&gpmc_onenand_resource.start); (unsigned long *)&gpmc_onenand_resource.start);
if (err < 0) { if (err < 0) {
pr_err("%s: Cannot request GPMC CS\n", __func__); pr_err("%s: Cannot request GPMC CS %d, error %d\n",
__func__, gpmc_onenand_data->cs, err);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment