summaryrefslogtreecommitdiff
path: root/namedev.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-12 21:41:57 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:53:17 -0700
commite6764498e7592f216a1895eacc485448fa4a1660 (patch)
tree11c81e7174f0bcb5774568f569985589584fbc19 /namedev.c
parent319112e295bbf1ed5d86389190abbe24ce251b14 (diff)
[PATCH] correct enum device_type
Diffstat (limited to 'namedev.c')
-rw-r--r--namedev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/namedev.c b/namedev.c
index cd1f2de989..fd1cf0458a 100644
--- a/namedev.c
+++ b/namedev.c
@@ -698,7 +698,7 @@ int namedev_name_device(struct udevice *udev, struct sysfs_class_device *class_d
dbg_parse("remove event should be ignored");
}
/* apply all_partitions option only at a main block device */
- if (dev->partitions && udev->type == BLOCK && udev->kernel_number[0] == '\0') {
+ if (dev->partitions && udev->type == DEV_BLOCK && udev->kernel_number[0] == '\0') {
udev->partitions = dev->partitions;
dbg("creation of partition nodes requested");
}
@@ -753,7 +753,7 @@ int namedev_name_device(struct udevice *udev, struct sysfs_class_device *class_d
strlcpy(udev->config_file, dev->config_file, sizeof(udev->config_file));
udev->config_line = dev->config_line;
- if (udev->type != NET)
+ if (udev->type != DEV_NET)
dbg("name, '%s' is going to have owner='%s', group='%s', mode=%#o partitions=%i",
udev->name, udev->owner, udev->group, udev->mode, udev->partitions);