Commit 0aa36954 authored by Tudor Ambarus's avatar Tudor Ambarus

mtd: spi-nor: Print device info in case of error

Print identifying information about struct device.
Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
parent cc86f3e7
...@@ -451,7 +451,7 @@ static int spi_nor_read_sr(struct spi_nor *nor, u8 *sr) ...@@ -451,7 +451,7 @@ static int spi_nor_read_sr(struct spi_nor *nor, u8 *sr)
} }
if (ret) if (ret)
pr_err("error %d reading SR\n", ret); dev_err(nor->dev, "error %d reading SR\n", ret);
return ret; return ret;
} }
...@@ -482,7 +482,7 @@ static int spi_nor_read_fsr(struct spi_nor *nor, u8 *fsr) ...@@ -482,7 +482,7 @@ static int spi_nor_read_fsr(struct spi_nor *nor, u8 *fsr)
} }
if (ret) if (ret)
pr_err("error %d reading FSR\n", ret); dev_err(nor->dev, "error %d reading FSR\n", ret);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment