xref: /openbmc/linux/drivers/base/hypervisor.c (revision 32825709)
1989d42e8SGreg Kroah-Hartman // SPDX-License-Identifier: GPL-2.0
24039483fSMichael Holzheu /*
34039483fSMichael Holzheu  * hypervisor.c - /sys/hypervisor subsystem.
44039483fSMichael Holzheu  *
5f19bfb2cSMichael Holzheu  * Copyright (C) IBM Corp. 2006
62d72fc00SGreg Kroah-Hartman  * Copyright (C) 2007 Greg Kroah-Hartman <gregkh@suse.de>
72d72fc00SGreg Kroah-Hartman  * Copyright (C) 2007 Novell Inc.
84039483fSMichael Holzheu  */
94039483fSMichael Holzheu 
104039483fSMichael Holzheu #include <linux/kobject.h>
114039483fSMichael Holzheu #include <linux/device.h>
121b6bc32fSPaul Gortmaker #include <linux/export.h>
134039483fSMichael Holzheu #include "base.h"
144039483fSMichael Holzheu 
152d72fc00SGreg Kroah-Hartman struct kobject *hypervisor_kobj;
162d72fc00SGreg Kroah-Hartman EXPORT_SYMBOL_GPL(hypervisor_kobj);
174039483fSMichael Holzheu 
hypervisor_init(void)184039483fSMichael Holzheu int __init hypervisor_init(void)
194039483fSMichael Holzheu {
202d72fc00SGreg Kroah-Hartman 	hypervisor_kobj = kobject_create_and_add("hypervisor", NULL);
212d72fc00SGreg Kroah-Hartman 	if (!hypervisor_kobj)
222d72fc00SGreg Kroah-Hartman 		return -ENOMEM;
232d72fc00SGreg Kroah-Hartman 	return 0;
244039483fSMichael Holzheu }
25