git: 82496a256fd4 - main - nvme: Use devclass_find to lookup the nvme devclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 17:30:05 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=82496a256fd4fe5b0e8dbd2d704e222752ae5edd
commit 82496a256fd4fe5b0e8dbd2d704e222752ae5edd
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-21 17:29:14 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-21 17:29:14 +0000
nvme: Use devclass_find to lookup the nvme devclass.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D34995
---
sys/dev/nvme/nvme.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/nvme/nvme.c b/sys/dev/nvme/nvme.c
index f36125ba247b..15fb456a1c54 100644
--- a/sys/dev/nvme/nvme.c
+++ b/sys/dev/nvme/nvme.c
@@ -220,7 +220,7 @@ nvme_notify_new_consumer(struct nvme_consumer *cons)
struct nvme_controller *ctrlr;
int dev_idx, devcount;
- if (devclass_get_devices(nvme_devclass, &devlist, &devcount))
+ if (devclass_get_devices(devclass_find("nvme"), &devlist, &devcount))
return;
for (dev_idx = 0; dev_idx < devcount; dev_idx++) {