Changeset 7978d1e7 in mainline for uspace/drv/audio/hdaudio/hdaudio.c
- Timestamp:
- 2014-08-14T08:56:27Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d070710
- Parents:
- b229062
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/hdaudio.c
rb229062 r7978d1e7 44 44 #include "hdactl.h" 45 45 #include "hdaudio.h" 46 #include " hdaudio_regs.h"46 #include "spec/regs.h" 47 47 48 48 #define NAME "hdaudio" … … 71 71 ddf_fun_t *fun_a; 72 72 hda_t *hda = NULL; 73 const char *dev_name;74 73 hw_res_list_parsed_t res; 75 74 void *regs; 76 75 int rc; 77 76 78 dev_name = ddf_dev_get_name(dev);79 77 ddf_msg(LVL_NOTE, "hda_dev_add()"); 80 78 … … 127 125 hda->regs = (hda_regs_t *)regs; 128 126 129 hda->ctl = hda_ctl_init(hda); 130 if (hda->ctl == NULL) { 127 if (hda_ctl_init(hda) == NULL) { 131 128 rc = EIO; 132 129 goto error; … … 151 148 152 149 ddf_fun_add_to_category(fun_a, "virtual"); 153 154 ddf_msg(LVL_DEBUG, "Device `%s' accepted.", dev_name);155 150 return EOK; 156 151 error:
Note:
See TracChangeset
for help on using the changeset viewer.