Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[linux-2.6-block.git] / drivers / base / hypervisor.c
CommitLineData
989d42e8 1// SPDX-License-Identifier: GPL-2.0
4039483f
MH
2/*
3 * hypervisor.c - /sys/hypervisor subsystem.
4 *
f19bfb2c 5 * Copyright (C) IBM Corp. 2006
2d72fc00
GKH
6 * Copyright (C) 2007 Greg Kroah-Hartman <gregkh@suse.de>
7 * Copyright (C) 2007 Novell Inc.
4039483f
MH
8 */
9
10#include <linux/kobject.h>
11#include <linux/device.h>
1b6bc32f 12#include <linux/export.h>
4039483f
MH
13#include "base.h"
14
2d72fc00
GKH
15struct kobject *hypervisor_kobj;
16EXPORT_SYMBOL_GPL(hypervisor_kobj);
4039483f
MH
17
18int __init hypervisor_init(void)
19{
2d72fc00
GKH
20 hypervisor_kobj = kobject_create_and_add("hypervisor", NULL);
21 if (!hypervisor_kobj)
22 return -ENOMEM;
23 return 0;
4039483f 24}