refactor: use a more decent physical memory map
[lunaix-os.git] / lunaix-os / kernel / device / device.c
index 6b901a6593958ac2a38fd4ea35009fd62d67c141..3647f10a87f778395cb4efba6f4080b622cd0f63 100644 (file)
@@ -6,6 +6,7 @@
 #include <lunaix/mm/valloc.h>
 #include <lunaix/spike.h>
 #include <lunaix/syscall.h>
+#include <lunaix/syscall_utils.h>
 
 static DEFINE_LLIST(root_list);
 
@@ -15,7 +16,7 @@ struct device*
 device_add(struct device* parent,
            void* underlay,
            char* name_fmt,
-           uint32_t type,
+           u32_t type,
            va_list args)
 {
     struct device* dev = vzalloc(sizeof(struct device));