xref: /linux/drivers/base/firmware.c (revision 989d42e85dc2f6823f39b8e9d080fd04bae0645d)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * firmware.c - firmware subsystem hoohaw.
4  *
5  * Copyright (c) 2002-3 Patrick Mochel
6  * Copyright (c) 2002-3 Open Source Development Labs
7  * Copyright (c) 2007 Greg Kroah-Hartman <gregkh@suse.de>
8  * Copyright (c) 2007 Novell Inc.
9  *
10  * This file is released under the GPLv2
11  */
12 #include <linux/kobject.h>
13 #include <linux/module.h>
14 #include <linux/init.h>
15 #include <linux/device.h>
16 
17 #include "base.h"
18 
19 struct kobject *firmware_kobj;
20 EXPORT_SYMBOL_GPL(firmware_kobj);
21 
22 int __init firmware_init(void)
23 {
24 	firmware_kobj = kobject_create_and_add("firmware", NULL);
25 	if (!firmware_kobj)
26 		return -ENOMEM;
27 	return 0;
28 }
29