Ignore:
Timestamp:
2012-06-29T13:02:14Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
722912e
Parents:
ba72f2b (diff), 0bbd13e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

Trivial conflicts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c

    rba72f2b r6843a9c  
    5252#include "s3c24xx_ts.h"
    5353
    54 #define NAME       "s3c24ser"
     54#define NAME       "s3c24xx_ts"
    5555#define NAMESPACE  "hid"
    5656
     
    6262
    6363static irq_code_t ts_irq_code = {
     64        0,
     65        NULL,
    6466        sizeof(ts_irq_cmds) / sizeof(irq_cmd_t),
    6567        ts_irq_cmds
     
    8284int main(int argc, char *argv[])
    8385{
    84         int rc;
    85 
    86         printf(NAME ": S3C24xx touchscreen driver\n");
    87 
    88         rc = loc_server_register(NAME, s3c24xx_ts_connection);
    89         if (rc < 0) {
    90                 printf(NAME ": Unable to register driver.\n");
    91                 return -1;
     86        printf("%s: S3C24xx touchscreen driver\n", NAME);
     87       
     88        async_set_client_connection(s3c24xx_ts_connection);
     89        int rc = loc_server_register(NAME);
     90        if (rc != EOK) {
     91                printf("%s: Unable to register driver.\n", NAME);
     92                return rc;
    9293        }
    9394
     
    139140
    140141        async_set_interrupt_received(s3c24xx_ts_irq_handler);
    141         register_irq(inr, device_assign_devno(), 0, &ts_irq_code);
     142        irq_register(inr, device_assign_devno(), 0, &ts_irq_code);
    142143
    143144        s3c24xx_ts_wait_for_int_mode(ts, updn_down);
Note: See TracChangeset for help on using the changeset viewer.