From: greg@kroah.com Date: Wed, 22 Oct 2003 08:12:40 +0000 (-0700) Subject: [PATCH] fix LABEL bug for device files (not class files.) X-Git-Tag: 005~22 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64455bfc69aa4c9a79bdfa9face9c4ecbdb5a8ed;p=systemd [PATCH] fix LABEL bug for device files (not class files.) --- diff --git a/namedev.c b/namedev.c index 6ed2415c..22ec6ace 100644 --- a/namedev.c +++ b/namedev.c @@ -566,7 +566,7 @@ static int get_attr(struct sysfs_class_device *class_dev, struct udevice *udev) /* look in the class device directory if present */ if (class_dev->sysdevice) { - tmpattr = sysfs_get_classdev_attr(class_dev, dev->sysfs_file); + tmpattr = sysfs_get_device_attr(class_dev->sysdevice, dev->sysfs_file); if (tmpattr) goto label_found; } @@ -599,7 +599,7 @@ static int get_attr(struct sysfs_class_device *class_dev, struct udevice *udev) /* look in the class device directory if present */ if (class_dev_parent->sysdevice) { - tmpattr = sysfs_get_classdev_attr(class_dev_parent, dev->sysfs_file); + tmpattr = sysfs_get_device_attr(class_dev_parent->sysdevice, dev->sysfs_file); if (tmpattr) goto label_found; }