Ignore:
Timestamp:
2011-10-14T15:07:21Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c5b6db53
Parents:
571ba2a
Message:

usbhid: multim unbind ddf function during destruction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhid/multimedia/multimedia.c

    r571ba2a raf8c9b54  
    6767        /** IPC session to the console device (for sending key events). */
    6868        async_sess_t *console_sess;
     69        /** DDF function */
     70        ddf_fun_t *fun;
    6971} usb_multimedia_t;
    7072
     
    192194                return rc;
    193195        }
     196        multim_dev->fun = fun;
    194197
    195198        return EOK;
     
    242245                // hangup session to the console
    243246                async_hangup(multim_dev->console_sess);
     247                const int ret = ddf_fun_unbind(multim_dev->fun);
     248                if (ret != EOK) {
     249                        usb_log_error("Failed to unbind multim function.\n");
     250                } else {
     251                        ddf_fun_destroy(multim_dev->fun);
     252                }
    244253        }
    245254}
Note: See TracChangeset for help on using the changeset viewer.