Changes in uspace/srv/bd/rd/rd.c [79ae36dd:15f3c3f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/rd/rd.c
r79ae36dd r15f3c3f 52 52 #include <fibril_synch.h> 53 53 #include <stdio.h> 54 #include < devmap.h>54 #include <loc.h> 55 55 #include <ipc/bd.h> 56 56 #include <macros.h> … … 84 84 * @param icall Call data of the request that opened the connection. 85 85 */ 86 static void rd_connection(ipc_callid_t iid, ipc_call_t *icall )86 static void rd_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 87 87 { 88 88 ipc_callid_t callid; … … 235 235 (void *) rd_ph_addr, rd_size); 236 236 237 int rc = devmap_driver_register(NAME, rd_connection);237 int rc = loc_server_register(NAME, rd_connection); 238 238 if (rc < 0) { 239 239 printf("%s: Unable to register driver (%d)\n", NAME, rc); … … 241 241 } 242 242 243 devmap_handle_t devmap_handle;244 if ( devmap_device_register("bd/initrd", &devmap_handle) != EOK) {245 printf("%s: Unable to register device \n", NAME);243 service_id_t service_id; 244 if (loc_service_register("bd/initrd", &service_id) != EOK) { 245 printf("%s: Unable to register device service\n", NAME); 246 246 return false; 247 247 }
Note:
See TracChangeset
for help on using the changeset viewer.