module: move sysfs exposure to end of load_module
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 5 Jun 2010 17:17:36 +0000 (11:17 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Sat, 5 Jun 2010 01:47:36 +0000 (11:17 +0930)
This means a little extra work, but is more logical: we don't put
anything in sysfs until we're about to put the module into the
global list an parse its parameters.

This also gives us a logical place to put duplicate module detection
in the next patch.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found