Changes in uspace/drv/ns8250/ns8250.c [41b56084:be942bc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ns8250/ns8250.c
r41b56084 rbe942bc 53 53 54 54 #include <driver.h> 55 #include <ops/char_dev.h> 55 #include <char.h> 56 #include <resource.h> 56 57 57 58 #include <devman.h> … … 226 227 227 228 /** The character interface's callbacks. */ 228 static char_ dev_ops_t ns8250_char_dev_ops= {229 static char_iface_t ns8250_char_iface = { 229 230 .read = &ns8250_read, 230 231 .write = &ns8250_write … … 346 347 347 348 /* Get hw resources. */ 348 ret = hw_res_get_resource_list(dev->parent_phone, &hw_resources);349 ret = get_hw_resources(dev->parent_phone, &hw_resources); 349 350 if (ret != EOK) { 350 351 printf(NAME ": failed to get hw resources for the device " … … 393 394 } 394 395 395 hw_res_clean_resource_list(&hw_resources);396 clean_hw_resource_list(&hw_resources); 396 397 return ret; 397 398 398 399 failed: 399 400 ns8250_dev_cleanup(dev); 400 hw_res_clean_resource_list(&hw_resources);401 clean_hw_resource_list(&hw_resources); 401 402 return ret; 402 403 } … … 923 924 ns8250_dev_ops.close = &ns8250_close; 924 925 925 ns8250_dev_ops.interfaces[CHAR_DEV_IFACE] = &ns8250_char_ dev_ops;926 ns8250_dev_ops.interfaces[CHAR_DEV_IFACE] = &ns8250_char_iface; 926 927 ns8250_dev_ops.default_handler = &ns8250_default_handler; 927 928 }
Note:
See TracChangeset
for help on using the changeset viewer.