diff options
author | Ezequiel Garcia <[email protected]> | 2013-02-12 16:22:21 -0300 |
---|---|---|
committer | Jon Hunter <[email protected]> | 2013-04-01 14:53:37 -0500 |
commit | 80f5d373a6ed2f1708488c8fe467890433baee81 (patch) | |
tree | 196aaed4eaf362267a0a95d9115242adc884fb08 /arch/arm/mach-omap2/gpmc-onenand.c | |
parent | 097c9daec339e20244a11d73f20aa5ba193501d3 (diff) |
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: Ezequiel Garcia <[email protected]>
Reviewed-by: Jon Hunter <[email protected]>
Signed-off-by: Jon Hunter <[email protected]>
Diffstat (limited to 'arch/arm/mach-omap2/gpmc-onenand.c')
-rw-r--r-- | arch/arm/mach-omap2/gpmc-onenand.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/gpmc-onenand.c b/arch/arm/mach-omap2/gpmc-onenand.c index 0d75889c0a6f..f7c9c207d71b 100644 --- a/arch/arm/mach-omap2/gpmc-onenand.c +++ b/arch/arm/mach-omap2/gpmc-onenand.c @@ -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, (unsigned long *)&gpmc_onenand_resource.start); 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; } |