lkml.org 
[lkml]   [2010]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/2] serport: place serport serio device correctly in the device tree
    Date
    Make serport serio device to be a child of corresponding tty device
    instead of just hanging at /sys/devices/serioX.

    Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
    ---
    drivers/input/serio/serport.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/drivers/input/serio/serport.c b/drivers/input/serio/serport.c
    index 6d34511..ee0ff0c 100644
    --- a/drivers/input/serio/serport.c
    +++ b/drivers/input/serio/serport.c
    @@ -165,6 +165,7 @@ static ssize_t serport_ldisc_read(struct tty_struct * tty, struct file * file, u
    serio->open = serport_serio_open;
    serio->close = serport_serio_close;
    serio->port_data = serport;
    + serio->dev.parent = tty_get_device(tty);

    serio_register_port(serport->serio);
    printk(KERN_INFO "serio: Serial port %s\n", tty_name(tty, name));
    --
    1.7.1


    \
     
     \ /
      Last update: 2010-08-06 18:33    [W:0.022 / U:0.708 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site