On Fri, 9 Nov 2012, Lan Tianyu wrote: > This patch is to register usb port's acpi power resources. Create > link between usb port device and its acpi power resource. > +int usb_acpi_unregister_power_resources(struct usb_device *udev) > +{ > + acpi_handle port_handle = DEVICE_ACPI_HANDLE(&udev->dev); > + > + if (!port_handle) > + return -ENODEV; > + > + acpi_power_resource_register_device(&udev->dev, port_handle); Don't you want to _un_-register the resource here? Alan Stern -- 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