]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31f5fee48e556f953534ca7793f367e842c25615
tree3deb620fc46810c15ab2d3b3cfb09d960666b40e
parenta785ba99e665fa43243c43e180e58f23f3d43b68
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