diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-24 19:41:12 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-24 19:41:12 -0400 |
commit | 97d888144dc6c4773bb5310cc2bd68f06c9d88ee (patch) | |
tree | 732459a6e0828dd91da46967ede0df5571c7fdf4 /sys/dev | |
parent | ee7d9a7237794b4b8b67a19a244ffb3bf69d34e4 (diff) |
kernel: device: Replace DEVICE_ALLOC()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/nvme.c | 2 | ||||
-rw-r--r-- | sys/dev/video/fbdev.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index f471627..73533da 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -406,7 +406,7 @@ nvme_init_ns(struct nvme_state *state, uint16_t nsid) ns->cntl = state; nvme_create_ioq(ns, ns->nsid); - dev = DEVICE_ALLOC(); + dev = device_alloc(); dev->read = nvme_dev_read; dev->write = nvme_dev_write; dev->blocksize = ns->lba_bsize; diff --git a/sys/dev/video/fbdev.c b/sys/dev/video/fbdev.c index 70031a0..1f20ab6 100644 --- a/sys/dev/video/fbdev.c +++ b/sys/dev/video/fbdev.c @@ -75,7 +75,7 @@ fbdev_get_front(void) static int fbdev_init(void) { - dev = DEVICE_ALLOC(); + dev = device_alloc(); dev->blocksize = 1; dev->read = NULL; dev->write = NULL; |