]> git.karo-electronics.de Git - mv-sheeva.git/commit
virtio: console: Don't always create a port 0 if using multiport
authorAmit Shah <amit.shah@redhat.com>
Thu, 20 May 2010 04:15:49 +0000 (22:15 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 19 May 2010 12:45:49 +0000 (22:15 +0930)
commit1d05160be743c506b1d6926e7c637496fa750cd3
treedd4d366c0a6cbdef3f5747f104c515d558d00f55
parentf909f850d666e3dbac1ee7c9d5d83416bd02f84e
virtio: console: Don't always create a port 0 if using multiport

If we're using multiport, there's no point in always creating a console
port. Create the console port only if the host doesn't support
multiport.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c