Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion drivers/usb/gadget/configfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1776,9 +1776,11 @@ static int android_device_create(struct gadget_info *gi)
struct device_attribute **attrs;
struct device_attribute *attr;

dev_t devt = MKDEV(0, gadget_index);

INIT_WORK(&gi->work, android_work);
gi->dev = device_create(android_class, NULL,
MKDEV(0, 0), NULL, "android%d", gadget_index++);
devt, NULL, "android%d", gadget_index++);
if (IS_ERR(gi->dev))
return PTR_ERR(gi->dev);

Expand Down