OSDN Git Service

BACKPORT: tty: goldfish: support platform_device with id -1
authorGreg Hackmann <ghackmann@google.com>
Fri, 26 Feb 2016 19:01:05 +0000 (19:01 +0000)
committerJin Qian <jinqian@google.com>
Thu, 17 Nov 2016 17:56:06 +0000 (09:56 -0800)
commit3f5a380007fec7d4f6a0f361cf9da78a206e53c1
treeca3e826a08a0d28431e9ba124a38c67510c9ae5f
parentaec62280ca9d6091b08c979284ae41379549d506
BACKPORT: 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>
(cherry picked from commit 465893e18878e119d8d0255439fad8debbd646fd)

Change-Id: Ifec5ee9d71c7c076e59bb7af77c0184d1b1383cb
drivers/tty/goldfish.c