Changes in uspace/drv/bus/usb/uhci/main.c [5203e256:0c0f823b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/main.c
r5203e256 r0c0f823b 43 43 #define NAME "uhci" 44 44 45 static int uhci_ add_device(ddf_dev_t *device);45 static int uhci_dev_add(ddf_dev_t *device); 46 46 /*----------------------------------------------------------------------------*/ 47 47 static driver_ops_t uhci_driver_ops = { 48 . add_device = uhci_add_device,48 .dev_add = uhci_dev_add, 49 49 }; 50 50 /*----------------------------------------------------------------------------*/ … … 59 59 * @return Error code. 60 60 */ 61 int uhci_ add_device(ddf_dev_t *device)61 int uhci_dev_add(ddf_dev_t *device) 62 62 { 63 usb_log_debug2("uhci_ add_device() called\n");63 usb_log_debug2("uhci_dev_add() called\n"); 64 64 assert(device); 65 65 66 int ret = device_setup_uhci(device);66 const int ret = device_setup_uhci(device); 67 67 if (ret != EOK) { 68 68 usb_log_error("Failed to initialize UHCI driver: %s.\n", 69 69 str_error(ret)); 70 return ret; 70 } else { 71 usb_log_info("Controlling new UHCI device '%s'.\n", 72 device->name); 71 73 } 72 usb_log_info("Controlling new UHCI device '%s'.\n", device->name);73 74 74 return EOK;75 return ret; 75 76 } 76 77 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.