projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecca390
)
nvme-hwmon: log the controller device name
author
Sagi Grimberg
<sagi@grimberg.me>
Fri, 24 Jul 2020 01:14:10 +0000
(18:14 -0700)
committer
Christoph Hellwig
<hch@lst.de>
Wed, 29 Jul 2020 05:45:20 +0000
(07:45 +0200)
Stay consistent with the rest of the driver
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/hwmon.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/host/hwmon.c
b/drivers/nvme/host/hwmon.c
index 23ba8bf678ae488dee366a0cbcaa065da7555659..412a6c97c0d87a22f9bf8298f8967ee3bbf15095 100644
(file)
--- a/
drivers/nvme/host/hwmon.c
+++ b/
drivers/nvme/host/hwmon.c
@@
-241,7
+241,8
@@
void nvme_hwmon_init(struct nvme_ctrl *ctrl)
err = nvme_hwmon_get_smart_log(data);
if (err) {
- dev_warn(dev, "Failed to read smart log (error %d)\n", err);
+ dev_warn(ctrl->device,
+ "Failed to read smart log (error %d)\n", err);
devm_kfree(dev, data);
return;
}