This converts the code to use the new kobject functions, cleaning up the logic in doing so. Cc: Stephen Hemminger <[email protected]> Cc: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>