2012/9/28 Yinghai Lu <yinghai@xxxxxxxxxx>: > On Tue, Sep 25, 2012 at 9:57 AM, Yinghai Lu <yinghai@xxxxxxxxxx> wrote: >> On Tue, Sep 25, 2012 at 1:35 AM, Lan Tianyu <lantianyu1986@xxxxxxxxx> wrote: >>> 2012/9/25 Yinghai Lu <yinghai@xxxxxxxxxx>: >>>> The struct member is not used anymore, remove it. >>>> >>>> Signed-off-by: Yinghai Lu <yinghai@xxxxxxxxxx> >>>> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> >>>> Cc: linux-usb@xxxxxxxxxxxxxxx >>>> --- >>>> drivers/usb/core/usb-acpi.c | 1 - >>>> 1 files changed, 0 insertions(+), 1 deletions(-) >>>> >>>> diff --git a/drivers/usb/core/usb-acpi.c b/drivers/usb/core/usb-acpi.c >>>> index 8947b20..a6ea613 100644 >>>> --- a/drivers/usb/core/usb-acpi.c >>>> +++ b/drivers/usb/core/usb-acpi.c >>>> @@ -102,7 +102,6 @@ static int usb_acpi_find_device(struct device *dev, acpi_handle *handle) >>>> >>>> static struct acpi_bus_type usb_acpi_bus = { >>>> .bus = &usb_bus_type, >>>> - .find_bridge = NULL, >>>> .find_device = usb_acpi_find_device, >>>> }; >>>> >>> HI Yinghai: >>> This member has been populated in the usb-next tree. >>> >>> http://git.kernel.org/?p=linux/kernel/git/gregkh/usb.git;a=commit;h=d557542421da643358201664903e67fd01dfca1a >> >> Thanks for pointing that out. >> >> Looks that following change is not needed in that commit. >> >> @@ -102,7 +139,7 @@ static int usb_acpi_find_device(struct device >> *dev, acpi_handle *handle) >> >> static struct acpi_bus_type usb_acpi_bus = { >> .bus = &usb_bus_type, >> - .find_bridge = NULL, >> + .find_bridge = usb_acpi_find_device, >> .find_device = usb_acpi_find_device, >> }; >> > > after looking your code closely, that find_bridge is still needed. > that usb_port does not have usb_bus_type. hi Yinghai: Sorry for late reply. You are right. > > but mixing find bridge and find device cause confusing. > > Please check attached patch that will separate find_bridge out. Ok. Find one indention error. - return 0; - } else if (is_usb_port(dev)) { - sscanf(dev_name(dev), "port%d", &port_num); - /* Get the struct usb_device point of port's hub */ - udev = to_usb_device(dev->parent->parent); + } + usb_acpi_check_port_connect_type(udev, *handle, port_num); <== one more tab. + + return 0; +} + > > -Yinghai -- Best regards Tianyu Lan -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html