diff options
author | greg@kroah.com <greg@kroah.com> | 2003-10-22 01:12:40 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:04:10 -0700 |
commit | 64455bfc69aa4c9a79bdfa9face9c4ecbdb5a8ed (patch) | |
tree | 96fb3d17c58f24456cbdf4be42e803f7b4da80d7 /namedev.c | |
parent | 9d496c74f3a6b1963727b515126e87e64abe046c (diff) |
[PATCH] fix LABEL bug for device files (not class files.)
Diffstat (limited to 'namedev.c')
-rw-r--r-- | namedev.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |