aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2013-02-12 14:22:20 -0500
committerJon Hunter <jon-hunter@ti.com>2013-04-01 15:53:37 -0400
commit097c9daec339e20244a11d73f20aa5ba193501d3 (patch)
treee531e2c9e28104efcbdd6ab3ed999106d2a498b5 /arch/arm/mach-omap2
parentae9d908abc9e9d858a619faaf4d6647bdf3cb21f (diff)
ARM: omap2: gpmc-nand: 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 <ezequiel.garcia@free-electrons.com> Reviewed-by: Jon Hunter <jon-hunter@ti.com> Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/gpmc-nand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c
index afc1e8c32d6c..e50e438b64aa 100644
--- a/arch/arm/mach-omap2/gpmc-nand.c
+++ b/arch/arm/mach-omap2/gpmc-nand.c
@@ -122,7 +122,8 @@ int gpmc_nand_init(struct omap_nand_platform_data *gpmc_nand_data,
122 err = gpmc_cs_request(gpmc_nand_data->cs, NAND_IO_SIZE, 122 err = gpmc_cs_request(gpmc_nand_data->cs, NAND_IO_SIZE,
123 (unsigned long *)&gpmc_nand_resource[0].start); 123 (unsigned long *)&gpmc_nand_resource[0].start);
124 if (err < 0) { 124 if (err < 0) {
125 dev_err(dev, "Cannot request GPMC CS\n"); 125 dev_err(dev, "Cannot request GPMC CS %d, error %d\n",
126 gpmc_nand_data->cs, err);
126 return err; 127 return err;
127 } 128 }
128 129