blob: 8dff940e0db905a54f48670e87607804f5d17b92 [file] [log] [blame]
Greg Kroah-Hartman989d42e2017-11-07 17:30:07 +01001// SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
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-Hartman15f2f9b2007-11-02 16:19:59 -07007 * Copyright (c) 2007 Greg Kroah-Hartman <gregkh@suse.de>
8 * Copyright (c) 2007 Novell Inc.
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070010#include <linux/kobject.h>
11#include <linux/module.h>
12#include <linux/init.h>
Ben Dooksa1bdc7a2005-10-13 17:54:41 +010013#include <linux/device.h>
14
15#include "base.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -070016
Greg Kroah-Hartmanf62ed9e2007-11-05 13:16:15 -080017struct kobject *firmware_kobj;
18EXPORT_SYMBOL_GPL(firmware_kobj);
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
Linus Torvalds1da177e2005-04-16 15:20:36 -070020int __init firmware_init(void)
21{
Greg Kroah-Hartmanf62ed9e2007-11-05 13:16:15 -080022 firmware_kobj = kobject_create_and_add("firmware", NULL);
23 if (!firmware_kobj)
Greg Kroah-Hartmanb0d78e52007-10-29 23:22:26 -050024 return -ENOMEM;
25 return 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -070026}