Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/port/chardev.c

    r7aa94304 rf9b2cb4c  
    5959/** List of devices to try connecting to. */
    6060static const char *in_devs[] = {
    61         /** S3C24xx UART - Openmoko debug console */
    62         "char/s3c24xx_uart",
    63         /** Ski console, MSIM console, Sun4v console */
    64         "devices/\\hw\\console\\a"
     61        "char/s3c24xx_uart"
    6562};
    6663
     
    7572       
    7673        kbd_dev = kdev;
    77 again:
     74       
    7875        for (i = 0; i < num_devs; i++) {
    7976                rc = loc_service_get_id(in_devs[i], &service_id, 0);
     
    8380       
    8481        if (i >= num_devs) {
    85                 /* XXX This is just a hack. */
    86                 printf("%s: No input device found, sleep for retry.\n", NAME);
    87                 async_usleep(1000 * 1000);
    88                 goto again;
     82                printf("%s: Could not find any suitable input device\n", NAME);
     83                return -1;
    8984        }
    9085       
     
    115110        }
    116111       
    117         printf("%s: Found input device '%s'\n", NAME, in_devs[i]);
    118112        return 0;
    119113}
Note: See TracChangeset for help on using the changeset viewer.