diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-02-09 07:07:19 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-03-30 21:03:33 -0400 |
commit | dc6525c61f0fc1e41611d91134f56ed2c297feac (patch) | |
tree | 380ff84044eb093430ab98df98c870c9efb252cc /drivers/mtd | |
parent | 35cc3337b6d5bb71ec80daaaf268bf25514fb6a2 (diff) |
mtd: fsl-quadspi: Print the error value
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/spi-nor/fsl-quadspi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c index 1c7308c2c77d..c01dd1611888 100644 --- a/drivers/mtd/spi-nor/fsl-quadspi.c +++ b/drivers/mtd/spi-nor/fsl-quadspi.c | |||
@@ -830,27 +830,27 @@ static int fsl_qspi_probe(struct platform_device *pdev) | |||
830 | 830 | ||
831 | ret = clk_prepare_enable(q->clk_en); | 831 | ret = clk_prepare_enable(q->clk_en); |
832 | if (ret) { | 832 | if (ret) { |
833 | dev_err(dev, "can not enable the qspi_en clock\n"); | 833 | dev_err(dev, "cannot enable the qspi_en clock: %d\n", ret); |
834 | return ret; | 834 | return ret; |
835 | } | 835 | } |
836 | 836 | ||
837 | ret = clk_prepare_enable(q->clk); | 837 | ret = clk_prepare_enable(q->clk); |
838 | if (ret) { | 838 | if (ret) { |
839 | dev_err(dev, "can not enable the qspi clock\n"); | 839 | dev_err(dev, "cannot enable the qspi clock: %d\n", ret); |
840 | goto clk_failed; | 840 | goto clk_failed; |
841 | } | 841 | } |
842 | 842 | ||
843 | /* find the irq */ | 843 | /* find the irq */ |
844 | ret = platform_get_irq(pdev, 0); | 844 | ret = platform_get_irq(pdev, 0); |
845 | if (ret < 0) { | 845 | if (ret < 0) { |
846 | dev_err(dev, "failed to get the irq\n"); | 846 | dev_err(dev, "failed to get the irq: %d\n", ret); |
847 | goto irq_failed; | 847 | goto irq_failed; |
848 | } | 848 | } |
849 | 849 | ||
850 | ret = devm_request_irq(dev, ret, | 850 | ret = devm_request_irq(dev, ret, |
851 | fsl_qspi_irq_handler, 0, pdev->name, q); | 851 | fsl_qspi_irq_handler, 0, pdev->name, q); |
852 | if (ret) { | 852 | if (ret) { |
853 | dev_err(dev, "failed to request irq.\n"); | 853 | dev_err(dev, "failed to request irq: %d\n", ret); |
854 | goto irq_failed; | 854 | goto irq_failed; |
855 | } | 855 | } |
856 | 856 | ||