From ab4dce7a2eba895433dd2403776b158d8b4b8022 Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Wed, 15 Apr 2009 21:34:40 -0400 Subject: [PATCH] --- yaml --- r: 151323 b: refs/heads/master c: a864e3aa5d8e1278c05aa93c57dba0debbb46858 h: refs/heads/master i: 151321: 25c75c9e038795095611acb8b9113984054678ea 151319: ccd61f5c94aee6f19b60af58eabfe7b9360c3204 v: v3 --- [refs] | 2 +- trunk/drivers/usb/core/sysfs.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 05d4a09f38c4..eaef3a714173 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c5be1b52d9ea6ede4931691bf9f0bd454515aa52 +refs/heads/master: a864e3aa5d8e1278c05aa93c57dba0debbb46858 diff --git a/trunk/drivers/usb/core/sysfs.c b/trunk/drivers/usb/core/sysfs.c index c66789197927..b5c72e458943 100644 --- a/trunk/drivers/usb/core/sysfs.c +++ b/trunk/drivers/usb/core/sysfs.c @@ -552,8 +552,8 @@ static struct attribute *dev_string_attrs[] = { static mode_t dev_string_attrs_are_visible(struct kobject *kobj, struct attribute *a, int n) { - struct usb_device *udev = to_usb_device( - container_of(kobj, struct device, kobj)); + struct device *dev = container_of(kobj, struct device, kobj); + struct usb_device *udev = to_usb_device(dev); if (a == &dev_attr_manufacturer.attr) { if (udev->manufacturer == NULL) @@ -585,8 +585,8 @@ static ssize_t read_descriptors(struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) { - struct usb_device *udev = to_usb_device( - container_of(kobj, struct device, kobj)); + struct device *dev = container_of(kobj, struct device, kobj); + struct usb_device *udev = to_usb_device(dev); size_t nleft = count; size_t srclen, n; int cfgno; @@ -786,8 +786,8 @@ static struct attribute *intf_assoc_attrs[] = { static mode_t intf_assoc_attrs_are_visible(struct kobject *kobj, struct attribute *a, int n) { - struct usb_interface *intf = to_usb_interface( - container_of(kobj, struct device, kobj)); + struct device *dev = container_of(kobj, struct device, kobj); + struct usb_interface *intf = to_usb_interface(dev); if (intf->intf_assoc == NULL) return 0;