Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c408284c
Commit
c408284c
authored
Oct 30, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create firmware subsystem and register it on startup.
parent
d48a8e6e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
2 deletions
+35
-2
drivers/base/Makefile
drivers/base/Makefile
+3
-2
drivers/base/firmware.c
drivers/base/firmware.c
+32
-0
No files found.
drivers/base/Makefile
View file @
c408284c
...
@@ -2,13 +2,14 @@
...
@@ -2,13 +2,14 @@
obj-y
:=
core.o sys.o interface.o power.o bus.o
\
obj-y
:=
core.o sys.o interface.o power.o bus.o
\
driver.o class.o intf.o platform.o
\
driver.o class.o intf.o platform.o
\
cpu.o
cpu.o
firmware.o
obj-y
+=
fs/
obj-y
+=
fs/
obj-$(CONFIG_HOTPLUG)
+=
hotplug.o
obj-$(CONFIG_HOTPLUG)
+=
hotplug.o
export-objs
:=
core.o power.o sys.o bus.o driver.o
\
export-objs
:=
core.o power.o sys.o bus.o driver.o
\
class.o intf.o platform.o cpu.o
class.o intf.o platform.o cpu.o
\
firmware.o
include
$(TOPDIR)/Rules.make
include
$(TOPDIR)/Rules.make
drivers/base/firmware.c
0 → 100644
View file @
c408284c
/*
* firmware.c - firmware subsystem hoohaw.
*/
#include <linux/kobject.h>
#include <linux/module.h>
#include <linux/init.h>
static
struct
subsystem
firmware_subsys
=
{
.
kobj
=
{
.
name
=
"firmware"
},
};
int
firmware_register
(
struct
subsystem
*
s
)
{
s
->
parent
=
&
firmware_subsys
;
return
subsystem_register
(
s
);
}
void
firmware_unregister
(
struct
subsystem
*
s
)
{
subsystem_unregister
(
s
);
}
static
int
__init
firmware_init
(
void
)
{
return
subsystem_register
(
&
firmware_subsys
);
}
core_initcall
(
firmware_init
);
EXPORT_SYMBOL
(
firmware_register
);
EXPORT_SYMBOL
(
firmware_unregister
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment