Changeset d2bff2f in mainline for uspace/drv/ohci/ohci.c


Ignore:
Timestamp:
2011-05-07T15:41:47Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
76ef94e
Parents:
dc5f2fb
Message:

UHCI refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/ohci.c

    rdc5f2fb rd2bff2f  
    109109    ddf_fun_t *fun, devman_handle_t *handle)
    110110{
    111         assert(handle);
    112111        assert(fun);
    113112        ddf_fun_t *hc_fun = dev_to_ohci(fun->dev)->hc_fun;
    114113        assert(hc_fun);
    115114
    116         *handle = hc_fun->handle;
     115        if (handle != NULL)
     116                *handle = hc_fun->handle;
    117117        return EOK;
    118118}
     
    170170} else (void)0
    171171
     172        instance->rh_fun = NULL;
    172173        instance->hc_fun = ddf_fun_create(device, fun_exposed, "ohci-hc");
    173174        int ret = instance->hc_fun ? EOK : ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.