projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc86f3e
)
mtd: spi-nor: Print device info in case of error
author
Tudor Ambarus
<tudor.ambarus@microchip.com>
Wed, 23 Oct 2019 23:28:07 +0000
(
02:28
+0300)
committer
Tudor Ambarus
<tudor.ambarus@microchip.com>
Sat, 2 Nov 2019 10:16:33 +0000
(12:16 +0200)
Print identifying information about struct device.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/mtd/spi-nor/spi-nor.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi-nor/spi-nor.c
b/drivers/mtd/spi-nor/spi-nor.c
index 46965cc945341fcd8fb74082cfd435e21e474169..0d2f1ebb530a93250169183de972d2a7aec75e4f 100644
(file)
--- a/
drivers/mtd/spi-nor/spi-nor.c
+++ b/
drivers/mtd/spi-nor/spi-nor.c
@@
-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;
}