X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/1375eb51603466b723ab7dd1ca4194ee5d662f75..1025235c72c31f7fa7b648c0e32ddcaa68a8f66a:/lunaix-os/hal/char/devnull.c diff --git a/lunaix-os/hal/char/devnull.c b/lunaix-os/hal/char/devnull.c index 747e05f..77650b0 100644 --- a/lunaix-os/hal/char/devnull.c +++ b/lunaix-os/hal/char/devnull.c @@ -1,11 +1,11 @@ #include -#include +#include static int __null_wr_pg(struct device* dev, void* buf, size_t offset) { // do nothing - return PG_SIZE; + return PAGE_SIZE; } static int @@ -38,7 +38,7 @@ pdev_nulldev_init(struct device_def* def) devnull->ops.read_page = __null_rd_pg; devnull->ops.read = __null_rd; - device_register(devnull, &def->class, "null"); + register_device(devnull, &def->class, "null"); return 0; }