Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b7c2757 in mainline


Ignore:
Timestamp:
2011-07-11T14:13:12Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
2a0b1dd
Parents:
1368a6b
Message:

OHCI: Root hub: Initialization won't fail.

Descriptor initialization won't fail.

Location:
uspace/drv/bus/usb/ohci
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/root_hub.c

    r1368a6b rb7c2757  
    164164static void create_serialized_hub_descriptor(rh_t *instance);
    165165
    166 static int rh_init_descriptors(rh_t *instance);
     166static void rh_init_descriptors(rh_t *instance);
    167167
    168168static void create_interrupt_mask_in_instance(rh_t *instance);
     
    224224 * @return Error code.
    225225 */
    226 int rh_init(rh_t *instance, ohci_regs_t *regs)
     226void rh_init(rh_t *instance, ohci_regs_t *regs)
    227227{
    228228        assert(instance);
     
    247247        instance->registers->rh_desc_a |= RHDA_NPS_FLAG;
    248248
    249         int ret = rh_init_descriptors(instance);
    250         if (ret != EOK) {
    251                 return ret;
    252         }
     249        rh_init_descriptors(instance);
    253250
    254251        usb_log_info("Root hub (%zu ports) initialized.\n",
    255252            instance->port_count);
    256 
    257         return EOK;
    258253}
    259254/*----------------------------------------------------------------------------*/
     
    381376 * @return Error code
    382377 */
    383 int rh_init_descriptors(rh_t *instance)
     378void rh_init_descriptors(rh_t *instance)
    384379{
    385380        assert(instance);
     
    395390            sizeof(usb_standard_interface_descriptor_t) +
    396391            instance->hub_descriptor_size;
    397 
    398         return EOK;
    399392}
    400393/*----------------------------------------------------------------------------*/
  • uspace/drv/bus/usb/ohci/root_hub.h

    r1368a6b rb7c2757  
    7777} rh_t;
    7878
    79 int rh_init(rh_t *instance, ohci_regs_t *regs);
     79void rh_init(rh_t *instance, ohci_regs_t *regs);
    8080
    8181int rh_request(rh_t *instance, usb_transfer_batch_t *request);
Note: See TracChangeset for help on using the changeset viewer.