static struct usb_configuration android_config_driver = {
.label = "android",
- .bind = android_bind_config,
.setup = android_setup_config,
.bConfigurationValue = 1,
.bmAttributes = USB_CONFIG_ATT_ONE | USB_CONFIG_ATT_SELFPOWER,
device_desc.iSerialNumber = id;
/* register our configuration */
- ret = usb_add_config(cdev, &android_config_driver);
+ ret = usb_add_config(cdev, &android_config_driver, android_bind_config);
if (ret) {
printk(KERN_ERR "usb_add_config failed\n");
return ret;
.name = "android_usb",
.dev = &device_desc,
.strings = dev_strings,
- .bind = android_bind,
.enable_function = android_enable_function,
};
strings_dev[STRING_SERIAL_IDX].s = pdata->serial_number;
}
- return usb_composite_register(&android_usb_driver);
+ return usb_composite_probe(&android_usb_driver, android_bind);
}
static struct platform_driver android_platform_driver = {