diff options
Diffstat (limited to 'udev_device.c')
-rw-r--r-- | udev_device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/udev_device.c b/udev_device.c index b680246bf8..21af91b443 100644 --- a/udev_device.c +++ b/udev_device.c @@ -70,13 +70,13 @@ void udev_device_cleanup(struct udevice *udev) dev_t udev_device_get_devt(struct udevice *udev) { const char *attr; - unsigned int major, minor; + unsigned int maj, min; /* read it from sysfs */ attr = sysfs_attr_get_value(udev->dev->devpath, "dev"); if (attr != NULL) { - if (sscanf(attr, "%u:%u", &major, &minor) == 2) - return makedev(major, minor); + if (sscanf(attr, "%u:%u", &maj, &min) == 2) + return makedev(maj, min); } return makedev(0, 0); } |