From: Jiri Slaby Date: Wed, 8 Aug 2012 20:26:44 +0000 (+0200) Subject: TTY: move cdev_add to tty_register_device X-Git-Tag: omap-cleanup-sparseirq-for-v3.7~119 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e73eca6a7b2967423902a4543821bb97cbbe698;p=pandora-kernel.git TTY: move cdev_add to tty_register_device We need the /dev/ node not to be available before we call tty_register_device. Otherwise we might race with open and tty_struct->port might not be available at that time. This is not an issue now, but would be a problem after "TTY: use tty_port_register_device" is applied. Signed-off-by: Jiri Slaby Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed