Changeset ca48672 in mainline for uspace/lib/drv/generic/driver.c
- Timestamp:
- 2025-06-20T15:18:27Z (32 hours ago)
- Branches:
- master
- Children:
- cb20b05
- Parents:
- 3951046
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
r3951046 rca48672 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 1048 1051 /* 1049 1052 * Remember the driver structure - driver_ops will be called by generic … … 1056 1059 * incoming connections. 1057 1060 */ 1058 port_id_t port; 1059 errno_t rc = async_create_port(INTERFACE_DDF_DRIVER, driver_connection_driver, 1060 NULL, &port); 1061 errno_t rc = async_create_port(INTERFACE_DDF_DRIVER, 1062 driver_connection_driver, NULL, &drv_port); 1061 1063 if (rc != EOK) { 1062 1064 printf("Error: Failed to create driver port.\n"); … … 1065 1067 1066 1068 rc = async_create_port(INTERFACE_DDF_DEVMAN, driver_connection_devman, 1067 NULL, & port);1069 NULL, &devman_port); 1068 1070 if (rc != EOK) { 1069 1071 printf("Error: Failed to create devman port.\n"); 1072 async_port_destroy(drv_port); 1070 1073 return rc; 1071 1074 } … … 1078 1081 "(%s).\n", (rc == EEXIST) ? "driver already started" : 1079 1082 str_error(rc)); 1080 1083 async_port_destroy(devman_port); 1084 async_port_destroy(drv_port); 1081 1085 return rc; 1082 1086 } … … 1086 1090 if (rc != EOK) { 1087 1091 printf("Error: Failed returning task value.\n"); 1092 // XXX devman_driver_unregister 1093 async_port_destroy(devman_port); 1094 async_port_destroy(drv_port); 1088 1095 return rc; 1089 1096 }
Note:
See TracChangeset
for help on using the changeset viewer.