summaryrefslogtreecommitdiff
path: root/namedev.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-02-21 13:45:04 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:36:13 -0700
commit5ef42682053f57fc031d420f0a2ae3e204421b8d (patch)
tree7ddd231fd445f1dfc10f2f22e1dae7b551a0ced9 /namedev.c
parent7e720bd4ad8257d81d273d98294ebbcc03ade9ba (diff)
[PATCH] switch device type to enum
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 e317cc685b..146dad604b 100644
--- a/namedev.c
+++ b/namedev.c
@@ -771,7 +771,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 == 'b' && udev->kernel_number[0] == '\0') {
+ if (dev->partitions && udev->type == BLOCK && udev->kernel_number[0] == '\0') {
udev->partitions = dev->partitions;
dbg("creation of partition nodes requested");
}
@@ -815,7 +815,7 @@ int namedev_name_device(struct udevice *udev, struct sysfs_class_device *class_d
strfieldcpy(udev->config_file, dev->config_file);
udev->config_line = dev->config_line;
- if (udev->type != 'n')
+ if (udev->type != 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);