From b0c1b65926d66482099e958e6218e8890531e47f Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 18 Apr 2024 14:33:50 -0400 Subject: kernel: devfs: Rename devfs_add_blkdev() Signed-off-by: Ian Moffett --- sys/dev/ic/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 4dd5f8e..addfd66 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -413,7 +413,7 @@ nvme_init_ns(struct nvme_state *state, uint16_t nsid) ns->dev_id = device_create(dev, state->major, nsid); snprintf(devname, sizeof(devname), "nvme0n%d", nsid); - if (devfs_add_blkdev(devname, dev) != 0) { + if (devfs_add_dev(devname, dev) != 0) { KERR("Failed to create /dev/%s\n", devname); } -- cgit v1.2.3