3514faca19
We don't need a "default" ktype for a kset. We should set this explicitly every time for each kset. This change is needed so that we can make ksets dynamic, and cleans up one of the odd, undocumented assumption that the kset/kobject/ktype model has. This patch is based on a lot of help from Kay Sievers. Nasty bug in the block code was found by Dave Young <hidave.darkstar@gmail.com> Cc: Kay Sievers <kay.sievers@vrfy.org> Cc: Dave Young <hidave.darkstar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
21 lines
360 B
C
21 lines
360 B
C
/*
|
|
* hypervisor.c - /sys/hypervisor subsystem.
|
|
*
|
|
* Copyright (C) IBM Corp. 2006
|
|
*
|
|
* This file is released under the GPLv2
|
|
*/
|
|
|
|
#include <linux/kobject.h>
|
|
#include <linux/device.h>
|
|
|
|
#include "base.h"
|
|
|
|
decl_subsys(hypervisor, NULL);
|
|
EXPORT_SYMBOL_GPL(hypervisor_subsys);
|
|
|
|
int __init hypervisor_init(void)
|
|
{
|
|
return subsystem_register(&hypervisor_subsys);
|
|
}
|