diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-10-24 02:28:07 +0300 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-11-02 13:16:33 +0300 |
commit | 0aa369540d71e68071ed232c71e3c8d5f154ff1a (patch) | |
tree | 7ad4c44614d0757d6cb465b3f9eddcf680a5e90a /drivers/mtd | |
parent | cc86f3e705981d9cb07aa8b0f5a2eabec999e341 (diff) | |
download | linux-0aa369540d71e68071ed232c71e3c8d5f154ff1a.tar.xz |
mtd: spi-nor: Print device info in case of error
Print identifying information about struct device.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/spi-nor/spi-nor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 46965cc94534..0d2f1ebb530a 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -451,7 +451,7 @@ static int spi_nor_read_sr(struct spi_nor *nor, u8 *sr) } if (ret) - pr_err("error %d reading SR\n", ret); + dev_err(nor->dev, "error %d reading SR\n", ret); return ret; } @@ -482,7 +482,7 @@ static int spi_nor_read_fsr(struct spi_nor *nor, u8 *fsr) } if (ret) - pr_err("error %d reading FSR\n", ret); + dev_err(nor->dev, "error %d reading FSR\n", ret); return ret; } |