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