blob: 11381555680943616bbc82a734f4e0e860ee5024 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * firmware.c - firmware subsystem hoohaw.
3 *
4 * Copyright (c) 2002-3 Patrick Mochel
5 * Copyright (c) 2002-3 Open Source Development Labs
Greg Kroah-Hartman15f2f9b2007-11-02 16:19:59 -07006 * Copyright (c) 2007 Greg Kroah-Hartman <gregkh@suse.de>
7 * Copyright (c) 2007 Novell Inc.
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 *
9 * This file is released under the GPLv2
Linus Torvalds1da177e2005-04-16 15:20:36 -070010 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070011#include <linux/kobject.h>
12#include <linux/module.h>
13#include <linux/init.h>
Ben Dooksa1bdc7a2005-10-13 17:54:41 +010014#include <linux/device.h>
15
16#include "base.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
Greg Kroah-Hartmanf62ed9e2007-11-05 13:16:15 -080018struct kobject *firmware_kobj;
19EXPORT_SYMBOL_GPL(firmware_kobj);
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
Linus Torvalds1da177e2005-04-16 15:20:36 -070021int __init firmware_init(void)
22{
Greg Kroah-Hartmanf62ed9e2007-11-05 13:16:15 -080023 firmware_kobj = kobject_create_and_add("firmware", NULL);
24 if (!firmware_kobj)
Greg Kroah-Hartmanb0d78e52007-10-29 23:22:26 -050025 return -ENOMEM;
26 return 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -070027}