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)
commit465893e18878e119d8d0255439fad8debbd646fd
treecfd5c2c6c14f61a82aed73a19a896cbc0fc28310
parent9b883eea26ccf043b608e398cf6a26231d44f5fb
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