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

Print identifying information about struct device.
Signed-off-by: NTudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: NBoris Brezillon <boris.brezillon@collabora.com>
上级 cc86f3e7
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册