Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf7c866d authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: gadget: configfs: Fix complilation error



commit <237c1c19> ("usb: gadget: Bind android devices
for all UDC gadgets") caused compilation error when
CONFIG_USB_CONFIGFS_UEVENT is enabled.

Change-Id: Iafdd2463bdf99a20f2a7ed5f12d895c8ef6effaf
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 6cc91ca3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1649,8 +1649,8 @@ static void android_device_destroy(struct gadget_info *gi)

	attrs = android_usb_attributes;
	while ((attr = *attrs++))
		device_remove_file(dev, attr);
	device_destroy(dev->class, dev->devt);
		device_remove_file(gi->dev, attr);
	device_destroy(gi->dev->class, gi->dev->devt);
	gi->dev = NULL;
}
#else