firmware.c 606 字节
Newer Older
1
// SPDX-License-Identifier: GPL-2.0
L
Linus Torvalds 已提交
2 3 4 5 6
/*
 * firmware.c - firmware subsystem hoohaw.
 *
 * Copyright (c) 2002-3 Patrick Mochel
 * Copyright (c) 2002-3 Open Source Development Labs
7 8
 * Copyright (c) 2007 Greg Kroah-Hartman <gregkh@suse.de>
 * Copyright (c) 2007 Novell Inc.
L
Linus Torvalds 已提交
9 10 11 12
 */
#include <linux/kobject.h>
#include <linux/module.h>
#include <linux/init.h>
13 14 15
#include <linux/device.h>

#include "base.h"
L
Linus Torvalds 已提交
16

17 18
struct kobject *firmware_kobj;
EXPORT_SYMBOL_GPL(firmware_kobj);
L
Linus Torvalds 已提交
19 20 21

int __init firmware_init(void)
{
22 23
	firmware_kobj = kobject_create_and_add("firmware", NULL);
	if (!firmware_kobj)
24 25
		return -ENOMEM;
	return 0;
L
Linus Torvalds 已提交
26
}