Changes in uspace/lib/drv/generic/driver.c [ca48672:8300c72] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
rca48672 r8300c72 1046 1046 errno_t ddf_driver_main(const driver_t *drv) 1047 1047 { 1048 port_id_t drv_port;1049 port_id_t devman_port;1050 1051 1048 /* 1052 1049 * Remember the driver structure - driver_ops will be called by generic … … 1059 1056 * incoming connections. 1060 1057 */ 1061 errno_t rc = async_create_port(INTERFACE_DDF_DRIVER, 1062 driver_connection_driver, NULL, &drv_port); 1058 port_id_t port; 1059 errno_t rc = async_create_port(INTERFACE_DDF_DRIVER, driver_connection_driver, 1060 NULL, &port); 1063 1061 if (rc != EOK) { 1064 1062 printf("Error: Failed to create driver port.\n"); … … 1067 1065 1068 1066 rc = async_create_port(INTERFACE_DDF_DEVMAN, driver_connection_devman, 1069 NULL, & devman_port);1067 NULL, &port); 1070 1068 if (rc != EOK) { 1071 1069 printf("Error: Failed to create devman port.\n"); 1072 async_port_destroy(drv_port);1073 1070 return rc; 1074 1071 } … … 1081 1078 "(%s).\n", (rc == EEXIST) ? "driver already started" : 1082 1079 str_error(rc)); 1083 async_port_destroy(devman_port); 1084 async_port_destroy(drv_port); 1080 1085 1081 return rc; 1086 1082 } … … 1090 1086 if (rc != EOK) { 1091 1087 printf("Error: Failed returning task value.\n"); 1092 // XXX devman_driver_unregister1093 async_port_destroy(devman_port);1094 async_port_destroy(drv_port);1095 1088 return rc; 1096 1089 }
Note:
See TracChangeset
for help on using the changeset viewer.