summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/include/sys/device.h2
-rw-r--r--sys/kern/kern_device.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/include/sys/device.h b/sys/include/sys/device.h
index 43b3db7..7b2f297 100644
--- a/sys/include/sys/device.h
+++ b/sys/include/sys/device.h
@@ -46,6 +46,6 @@ struct device {
struct device *device_fetch(dev_t major, dev_t minor);
dev_t device_alloc_major(void);
-dev_t create_dev(struct device *dev, dev_t major, dev_t minor);
+dev_t device_create(struct device *dev, dev_t major, dev_t minor);
#endif
diff --git a/sys/kern/kern_device.c b/sys/kern/kern_device.c
index cb9a6a1..cbba965 100644
--- a/sys/kern/kern_device.c
+++ b/sys/kern/kern_device.c
@@ -59,7 +59,7 @@ device_fetch(dev_t major, dev_t minor)
}
dev_t
-create_dev(struct device *dev, dev_t major, dev_t minor)
+device_create(struct device *dev, dev_t major, dev_t minor)
{
if (dev == NULL || minor == 0) {
return -EINVAL;