Changeset 00aece0 in mainline for uspace/drv/bus/usb/uhci/main.c
- Timestamp:
- 2012-02-18T16:47:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4449c6c
- Parents:
- bd5f3b7 (diff), f943dd3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/main.c
rbd5f3b7 r00aece0 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.