Greg Kroah-Hartman | 989d42e | 2017-11-07 17:30:07 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * firmware.c - firmware subsystem hoohaw. |
| 4 | * |
| 5 | * Copyright (c) 2002-3 Patrick Mochel |
| 6 | * Copyright (c) 2002-3 Open Source Development Labs |
Greg Kroah-Hartman | 15f2f9b | 2007-11-02 16:19:59 -0700 | [diff] [blame] | 7 | * Copyright (c) 2007 Greg Kroah-Hartman <gregkh@suse.de> |
| 8 | * Copyright (c) 2007 Novell Inc. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | #include <linux/kobject.h> |
| 11 | #include <linux/module.h> |
| 12 | #include <linux/init.h> |
Ben Dooks | a1bdc7a | 2005-10-13 17:54:41 +0100 | [diff] [blame] | 13 | #include <linux/device.h> |
| 14 | |
| 15 | #include "base.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
Greg Kroah-Hartman | f62ed9e | 2007-11-05 13:16:15 -0800 | [diff] [blame] | 17 | struct kobject *firmware_kobj; |
| 18 | EXPORT_SYMBOL_GPL(firmware_kobj); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | int __init firmware_init(void) |
| 21 | { |
Greg Kroah-Hartman | f62ed9e | 2007-11-05 13:16:15 -0800 | [diff] [blame] | 22 | firmware_kobj = kobject_create_and_add("firmware", NULL); |
| 23 | if (!firmware_kobj) |
Greg Kroah-Hartman | b0d78e5 | 2007-10-29 23:22:26 -0500 | [diff] [blame] | 24 | return -ENOMEM; |
| 25 | return 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | } |