blob: 9efff481f5dc4a50e0209ea15119596328fea017 [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-Hartman9e5f7f92007-11-02 13:20:40 -070018struct kset *firmware_kset;
19EXPORT_SYMBOL_GPL(firmware_kset);
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
Linus Torvalds1da177e2005-04-16 15:20:36 -070021int __init firmware_init(void)
22{
Greg Kroah-Hartmanb0d78e52007-10-29 23:22:26 -050023 firmware_kset = kset_create_and_add("firmware", NULL, NULL);
24 if (!firmware_kset)
25 return -ENOMEM;
26 return 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -070027}