Changes in uspace/drv/platform/amdm37x/main.c [cde999a:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/platform/amdm37x/main.c
rcde999a rb7fd2a0 150 150 151 151 static hw_resource_list_t *amdm37x_get_resources(ddf_fun_t *fnode); 152 static int amdm37x_enable_interrupt(ddf_fun_t *fun, int);152 static errno_t amdm37x_enable_interrupt(ddf_fun_t *fun, int); 153 153 154 154 static hw_res_ops_t fun_hw_res_ops = { … … 161 161 }; 162 162 163 static int amdm37x_add_fun(ddf_dev_t *dev, const amdm37x_fun_t *fun)163 static errno_t amdm37x_add_fun(ddf_dev_t *dev, const amdm37x_fun_t *fun) 164 164 { 165 165 assert(dev); … … 174 174 175 175 /* Add match id */ 176 int ret = ddf_fun_add_match_id(fnode,176 errno_t ret = ddf_fun_add_match_id(fnode, 177 177 fun->match_id.id, fun->match_id.score); 178 178 if (ret != EOK) { … … 212 212 * 213 213 */ 214 static int amdm37x_dev_add(ddf_dev_t *dev)214 static errno_t amdm37x_dev_add(ddf_dev_t *dev) 215 215 { 216 216 assert(dev); … … 218 218 if (!device) 219 219 return ENOMEM; 220 int ret = amdm37x_init(device, DEBUG_CM);220 errno_t ret = amdm37x_init(device, DEBUG_CM); 221 221 if (ret != EOK) { 222 222 ddf_msg(LVL_FATAL, "Failed to setup hw access!.\n"); … … 265 265 } 266 266 267 static int amdm37x_enable_interrupt(ddf_fun_t *fun, int irq)267 static errno_t amdm37x_enable_interrupt(ddf_fun_t *fun, int irq) 268 268 { 269 269 //TODO: Implement
Note:
See TracChangeset
for help on using the changeset viewer.