lguest: do not statically allocate root device
authorMark McLoughlin <markmc@redhat.com>
Mon, 15 Dec 2008 12:58:28 +0000 (12:58 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 18:44:34 +0000 (10:44 -0800)
commitff8561c4ad09ca38c866436c9d67df2309b7dd40
tree7cc96a3fcaf43b1e34dfcffd4d936edf9b596a6a
parent63d12556703f17817a46e140704360b29b851bad
lguest: do not statically allocate root device

We shouldn't be statically allocating the root device object,
so dynamically allocate it using root_device_register()
instead.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/lguest/lguest_device.c