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
a6934054
Commit
a6934054
authored
21 years ago
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driver core: Export the legacy_bus structure for drivers to use.
parent
500d5250
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
drivers/base/platform.c
drivers/base/platform.c
+2
-1
include/linux/device.h
include/linux/device.h
+1
-0
No files found.
drivers/base/platform.c
View file @
a6934054
...
...
@@ -9,7 +9,7 @@
#include <linux/module.h>
#include <linux/init.h>
st
atic
st
ruct
device
legacy_bus
=
{
struct
device
legacy_bus
=
{
.
name
=
"legacy bus"
,
.
bus_id
=
"legacy"
,
};
...
...
@@ -75,5 +75,6 @@ int __init platform_bus_init(void)
return
bus_register
(
&
platform_bus_type
);
}
EXPORT_SYMBOL
(
legacy_bus
);
EXPORT_SYMBOL
(
platform_device_register
);
EXPORT_SYMBOL
(
platform_device_unregister
);
This diff is collapsed.
Click to expand it.
include/linux/device.h
View file @
a6934054
...
...
@@ -366,6 +366,7 @@ extern int platform_device_register(struct platform_device *);
extern
void
platform_device_unregister
(
struct
platform_device
*
);
extern
struct
bus_type
platform_bus_type
;
extern
struct
device
legacy_bus
;
/* drivers/base/power.c */
extern
int
device_suspend
(
u32
state
,
u32
level
);
...
...
This diff is collapsed.
Click to expand it.
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