From: Franck Bui-Huu Date: Tue, 7 Feb 2006 08:06:17 +0000 (+0100) Subject: [PATCH] USB: Zero driver: Removed duplicated code X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0eb8c7cafe8d4fa9a90ea8680200e3ae3d57b1bd;p=openwrt%2Fstaging%2Fblogic.git [PATCH] USB: Zero driver: Removed duplicated code Signed-off-by: Franck Bui-Huu Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c index ae7a1c0f5748..5e9fe8a70543 100644 --- a/drivers/usb/gadget/zero.c +++ b/drivers/usb/gadget/zero.c @@ -1224,12 +1224,6 @@ autoconf_fail: loopback_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP; } - if (gadget->is_otg) { - otg_descriptor.bmAttributes |= USB_OTG_HNP, - source_sink_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP; - loopback_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP; - } - usb_gadget_set_selfpowered (gadget); init_timer (&dev->resume);