TTY: serial, cleanup atmel_set_ldisc
authorJiri Slaby <jslaby@suse.cz>
Wed, 9 Nov 2011 20:33:44 +0000 (21:33 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 23:58:57 +0000 (15:58 -0800)
commitb54bf3b24908cd4f6a1d24276f795cfbccba5a3f
tree80656d69e054639d78e2f6c0713a7ae6e3e2545f
parent027d7dacf73273dbe07a75b2ef5579616f17272c
TTY: serial, cleanup atmel_set_ldisc

Current ldisc number is passed as a paramneter -- no need to dig it
out of the tty or ldisc. So switch PPS check to that.

No tty callback can be called with port->line higher than TTY driver
num. So remove the check.

This removes some port.tty users.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Viktar Palstsiuk <viktar.palstsiuk@promwad.com>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/atmel_serial.c