Changeset 7ea7db31 in mainline


Ignore:
Timestamp:
2011-01-09T21:20:21Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3c106e88
Parents:
622dea8
Message:

Cease using devmap_get_phone() and devmap_hangup_phone() in drivers.

Location:
uspace/srv
Files:
12 edited

Legend:

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

    r622dea8 r7ea7db31  
    171171                rc = devmap_device_register(name, &disk[i].devmap_handle);
    172172                if (rc != EOK) {
    173                         devmap_hangup_phone(DEVMAP_DRIVER);
    174173                        printf(NAME ": Unable to register device %s.\n", name);
    175174                        return rc;
  • uspace/srv/bd/file_bd/file_bd.c

    r622dea8 r7ea7db31  
    120120        rc = devmap_device_register(device_name, &devmap_handle);
    121121        if (rc != EOK) {
    122                 devmap_hangup_phone(DEVMAP_DRIVER);
    123122                printf(NAME ": Unable to register device '%s'.\n",
    124123                        device_name);
  • uspace/srv/bd/gxe_bd/gxe_bd.c

    r622dea8 r7ea7db31  
    145145                rc = devmap_device_register(name, &devmap_handle[i]);
    146146                if (rc != EOK) {
    147                         devmap_hangup_phone(DEVMAP_DRIVER);
    148147                        printf(NAME ": Unable to register device %s.\n", name);
    149148                        return rc;
  • uspace/srv/bd/part/guid_part/guid_part.c

    r622dea8 r7ea7db31  
    191191                rc = devmap_device_register(name, &dev);
    192192                if (rc != EOK) {
    193                         devmap_hangup_phone(DEVMAP_DRIVER);
    194193                        printf(NAME ": Unable to register device %s.\n", name);
    195194                        return rc;
  • uspace/srv/bd/part/mbr_part/mbr_part.c

    r622dea8 r7ea7db31  
    242242                rc = devmap_device_register(name, &dev);
    243243                if (rc != EOK) {
    244                         devmap_hangup_phone(DEVMAP_DRIVER);
    245244                        printf(NAME ": Unable to register device %s.\n", name);
    246245                        return rc;
  • uspace/srv/bd/rd/rd.c

    r622dea8 r7ea7db31  
    241241        devmap_handle_t devmap_handle;
    242242        if (devmap_device_register("bd/initrd", &devmap_handle) != EOK) {
    243                 devmap_hangup_phone(DEVMAP_DRIVER);
    244243                printf("%s: Unable to register device\n", NAME);
    245244                return false;
  • uspace/srv/fs/devfs/devfs_ops.c

    r622dea8 r7ea7db31  
    454454                return false;
    455455       
    456         if (devmap_get_phone(DEVMAP_CLIENT, IPC_FLAG_BLOCKING) < 0)
    457                 return false;
    458        
    459456        return true;
    460457}
  • uspace/srv/hid/console/console.c

    r622dea8 r7ea7db31  
    816816                       
    817817                        if (devmap_device_register(vc, &consoles[i].devmap_handle) != EOK) {
    818                                 devmap_hangup_phone(DEVMAP_DRIVER);
    819818                                printf(NAME ": Unable to register device %s\n", vc);
    820819                                return false;
  • uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c

    r622dea8 r7ea7db31  
    102102        rc = devmap_device_register(NAMESPACE "/mouse", &ts->devmap_handle);
    103103        if (rc != EOK) {
    104                 devmap_hangup_phone(DEVMAP_DRIVER);
    105104                printf(NAME ": Unable to register device %s.\n",
    106105                    NAMESPACE "/mouse");
  • uspace/srv/hw/bus/cuda_adb/cuda_adb.c

    r622dea8 r7ea7db31  
    162162        rc = devmap_device_register("adb/kbd", &devmap_handle);
    163163        if (rc != EOK) {
    164                 devmap_hangup_phone(DEVMAP_DRIVER);
    165164                printf(NAME ": Unable to register device %s.\n", "adb/kdb");
    166165                return rc;
     
    172171        rc = devmap_device_register("adb/mouse", &devmap_handle);
    173172        if (rc != EOK) {
    174                 devmap_hangup_phone(DEVMAP_DRIVER);
    175173                printf(NAME ": Unable to register device %s.\n", "adb/mouse");
    176174                return rc;
  • uspace/srv/hw/char/i8042/i8042.c

    r622dea8 r7ea7db31  
    148148                rc = devmap_device_register(name, &i8042_port[i].devmap_handle);
    149149                if (rc != EOK) {
    150                         devmap_hangup_phone(DEVMAP_DRIVER);
    151150                        printf(NAME ": Unable to register device %s.\n", name);
    152151                        return rc;
  • uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c

    r622dea8 r7ea7db31  
    9595        rc = devmap_device_register(NAMESPACE "/" NAME, &uart->devmap_handle);
    9696        if (rc != EOK) {
    97                 devmap_hangup_phone(DEVMAP_DRIVER);
    9897                printf(NAME ": Unable to register device %s.\n",
    9998                    NAMESPACE "/" NAME);
Note: See TracChangeset for help on using the changeset viewer.