mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-17 07:54:54 +08:00
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>
This commit is contained in:
parent
ae9d908abc
commit
097c9daec3
@ -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,
|
err = gpmc_cs_request(gpmc_nand_data->cs, NAND_IO_SIZE,
|
||||||
(unsigned long *)&gpmc_nand_resource[0].start);
|
(unsigned long *)&gpmc_nand_resource[0].start);
|
||||||
if (err < 0) {
|
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;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user