Changes in uspace/srv/bd/rd/rd.c [15f3c3f:79ae36dd] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/rd/rd.c

    r15f3c3f r79ae36dd  
    5252#include <fibril_synch.h>
    5353#include <stdio.h>
    54 #include <loc.h>
     54#include <devmap.h>
    5555#include <ipc/bd.h>
    5656#include <macros.h>
     
    8484 * @param icall Call data of the request that opened the connection.
    8585 */
    86 static void rd_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
     86static void rd_connection(ipc_callid_t iid, ipc_call_t *icall)
    8787{
    8888        ipc_callid_t callid;
     
    235235            (void *) rd_ph_addr, rd_size);
    236236       
    237         int rc = loc_server_register(NAME, rd_connection);
     237        int rc = devmap_driver_register(NAME, rd_connection);
    238238        if (rc < 0) {
    239239                printf("%s: Unable to register driver (%d)\n", NAME, rc);
     
    241241        }
    242242       
    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);
     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);
    246246                return false;
    247247        }
Note: See TracChangeset for help on using the changeset viewer.