[PATCH 2/3] mtd: fsl-quadspi: Remove unneeded success/error messages

Han Xu xhnjupt at gmail.com
Fri Jan 23 11:36:38 PST 2015


On Thu, Jan 22, 2015 at 6:43 PM, Fabio Estevam <festevam at gmail.com> wrote:
> From: Fabio Estevam <fabio.estevam at freescale.com>
>
> When the driver successfully probe we already have messages like:
>
> [    1.140989] fsl-quadspi 21e4000.qspi: s25fl128s (16384 Kbytes)
> [    1.150902] fsl-quadspi 21e4000.qspi: s25fl128s (16384 Kbytes)
>
> Or in case of error:
>
> [    1.175920] fsl-quadspi: probe of 21e4000.qspi failed with error -12
>
> , so remove the unneeded success/error messages.
>
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
Acked-by: Han Xu <han.xu at freescale.com>
> ---
>  drivers/mtd/spi-nor/fsl-quadspi.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
> index a733bd2..1c0572a 100644
> --- a/drivers/mtd/spi-nor/fsl-quadspi.c
> +++ b/drivers/mtd/spi-nor/fsl-quadspi.c
> @@ -939,7 +939,6 @@ static int fsl_qspi_probe(struct platform_device *pdev)
>
>         clk_disable(q->clk);
>         clk_disable(q->clk_en);
> -       dev_info(dev, "QuadSPI SPI NOR flash driver\n");
>         return 0;
>
>  last_init_failed:
> @@ -954,7 +953,6 @@ irq_failed:
>  clk_failed:
>         clk_disable_unprepare(q->clk_en);
>  map_failed:
> -       dev_err(dev, "Freescale QuadSPI probe failed\n");
>         return ret;
>  }
>
> --
> 1.9.1
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/



More information about the linux-mtd mailing list