Unverified Commit 0aa36954 authored by Tudor Ambarus's avatar Tudor Ambarus
Browse files

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}