Changeset 3d79f5b in mainline


Ignore:
Timestamp:
2011-10-03T18:44:00Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4c50c8d, a23297c
Parents:
d95f02ff
Message:

Allocate usbmast device soft state using ddf_dev_data_alloc().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmast/main.c

    rd95f02ff r3d79f5b  
    9494
    9595        /* Allocate softstate */
    96         mdev = calloc(1, sizeof(usbmast_dev_t));
     96        mdev = ddf_dev_data_alloc(dev->ddf_dev, sizeof(usbmast_dev_t));
    9797        if (mdev == NULL) {
    9898                usb_log_error("Failed allocating softstate.\n");
Note: See TracChangeset for help on using the changeset viewer.