From: Ezequiel Garcia Date: Tue, 12 Feb 2013 19:22:20 +0000 (-0300) Subject: ARM: omap2: gpmc-nand: Print something useful on CS request failure X-Git-Tag: accepted/tizen/common/20141203.182822~2347^2~19^2^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=097c9daec339e20244a11d73f20aa5ba193501d3;p=platform%2Fkernel%2Flinux-arm64.git 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 Reviewed-by: Jon Hunter Signed-off-by: Jon Hunter --- diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c index afc1e8c..e50e438 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, err = gpmc_cs_request(gpmc_nand_data->cs, NAND_IO_SIZE, (unsigned long *)&gpmc_nand_resource[0].start); if (err < 0) { - dev_err(dev, "Cannot request GPMC CS\n"); + dev_err(dev, "Cannot request GPMC CS %d, error %d\n", + gpmc_nand_data->cs, err); return err; }