]> git.baikalelectronics.ru Git - kernel.git/commit
tty: goldfish: support platform_device with id -1
authorGreg Hackmann <ghackmann@google.com>
Fri, 26 Feb 2016 19:01:05 +0000 (19:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2016 00:11:14 +0000 (16:11 -0800)
commitd807043d34fc261879fc60e22205f63d7fcd42a9
treecfd5c2c6c14f61a82aed73a19a896cbc0fc28310
parent167197f7fcd0f067509915b1b6c5977ec309abbd
tty: goldfish: support platform_device with id -1

When the platform bus sets the platform_device id to -1 (PLATFORM_DEVID_NONE),
use an incrementing counter for the TTY index instead

Signed-off-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Jin Qian <jinqian@android.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/goldfish.c