From: Dmitry Eremin-Solenikov Date: Mon, 9 Aug 2010 14:22:50 +0000 (+0400) Subject: serport: place serport serio device correctly in the device tree X-Git-Tag: v2.6.37-rc1~155^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de838a93cbf35671f890360b886a5c2a8a5d1aa4;p=platform%2Fkernel%2Flinux-stable.git serport: place serport serio device correctly in the device tree 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 Acked-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/input/serio/serport.c b/drivers/input/serio/serport.c index 6d34511..6e362de 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->dev; serio_register_port(serport->serio); printk(KERN_INFO "serio: Serial port %s\n", tty_name(tty, name));