forked from Minki/linux
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>
This commit is contained in:
parent
cc86f3e705
commit
0aa369540d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user