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:
Tudor Ambarus 2019-10-24 02:28:07 +03:00
parent cc86f3e705
commit 0aa369540d
No known key found for this signature in database
GPG Key ID: 4B554F47A58D14E9

View File

@ -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;
}