Skip to content

Commit

Permalink
mtd: fsl-quadspi: Print the error value
Browse files Browse the repository at this point in the history
When displaying dev_err() messages it is useful to print the error value.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Han Xu <han.xu@freescale.com>
[Brian: fix up "can not" at the same time]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
  • Loading branch information
Fabio Estevam authored and Brian Norris committed Mar 31, 2015
1 parent 35cc333 commit dc6525c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/mtd/spi-nor/fsl-quadspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,27 +830,27 @@ static int fsl_qspi_probe(struct platform_device *pdev)

ret = clk_prepare_enable(q->clk_en);
if (ret) {
dev_err(dev, "can not enable the qspi_en clock\n");
dev_err(dev, "cannot enable the qspi_en clock: %d\n", ret);
return ret;
}

ret = clk_prepare_enable(q->clk);
if (ret) {
dev_err(dev, "can not enable the qspi clock\n");
dev_err(dev, "cannot enable the qspi clock: %d\n", ret);
goto clk_failed;
}

/* find the irq */
ret = platform_get_irq(pdev, 0);
if (ret < 0) {
dev_err(dev, "failed to get the irq\n");
dev_err(dev, "failed to get the irq: %d\n", ret);
goto irq_failed;
}

ret = devm_request_irq(dev, ret,
fsl_qspi_irq_handler, 0, pdev->name, q);
if (ret) {
dev_err(dev, "failed to request irq.\n");
dev_err(dev, "failed to request irq: %d\n", ret);
goto irq_failed;
}

Expand Down

0 comments on commit dc6525c

Please sign in to comment.