virtio: console: Use cdev_alloc() instead of cdev_init()
authorAmit Shah <amit.shah@redhat.com>
Thu, 2 Sep 2010 12:50:59 +0000 (18:20 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 21 Oct 2010 07:14:03 +0000 (17:44 +1030)
commitd22a69892bd8f29e3096f6f54c2c00d8aec2e796
tree3deb620fc46810c15ab2d3b3cfb09d960666b40e
parent04950cdf071b6e5aa4794c93ad3e3ce8a1c4aa8c
virtio: console: Use cdev_alloc() instead of cdev_init()

This moves to using cdev on the heap instead of it being embedded in the
ports struct. This helps individual refcounting and will allow us to
properly remove cdev structs after hot-unplugs and close operations.

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