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
Kirill Smelkov
linux
Commits
b4c64ce1
Commit
b4c64ce1
authored
Sep 28, 2003
by
Linda Xie
Committed by
Greg Kroah-Hartman
Sep 28, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI Hotplug: export hotplug_slots subsys
This is needed for the PPC64 PCI hotplug driver.
parent
fbd5c06b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
drivers/pci/hotplug/pci_hotplug.h
drivers/pci/hotplug/pci_hotplug.h
+1
-0
drivers/pci/hotplug/pci_hotplug_core.c
drivers/pci/hotplug/pci_hotplug_core.c
+8
-7
No files found.
drivers/pci/hotplug/pci_hotplug.h
View file @
b4c64ce1
...
...
@@ -145,6 +145,7 @@ extern int pci_hp_register (struct hotplug_slot *slot);
extern
int
pci_hp_deregister
(
struct
hotplug_slot
*
slot
);
extern
int
pci_hp_change_slot_info
(
struct
hotplug_slot
*
slot
,
struct
hotplug_slot_info
*
info
);
extern
struct
subsystem
pci_hotplug_slots_subsys
;
#endif
drivers/pci/hotplug/pci_hotplug_core.c
View file @
b4c64ce1
...
...
@@ -69,7 +69,7 @@ static int debug;
static
LIST_HEAD
(
pci_hotplug_slot_list
);
st
atic
struct
subsystem
hotplug_slots_subsys
;
st
ruct
subsystem
pci_
hotplug_slots_subsys
;
static
ssize_t
hotplug_slot_attr_show
(
struct
kobject
*
kobj
,
struct
attribute
*
attr
,
char
*
buf
)
...
...
@@ -104,7 +104,7 @@ static struct kobj_type hotplug_slot_ktype = {
.
release
=
&
hotplug_slot_release
,
};
static
decl_subsys
(
hotplug_slots
,
&
hotplug_slot_ktype
,
NULL
);
decl_subsys
(
pci_
hotplug_slots
,
&
hotplug_slot_ktype
,
NULL
);
/* these strings match up with the values in pci_bus_speed */
...
...
@@ -534,7 +534,7 @@ int pci_hp_register (struct hotplug_slot *slot)
return
-
EINVAL
;
strlcpy
(
slot
->
kobj
.
name
,
slot
->
name
,
KOBJ_NAME_LEN
);
kobj_set_kset_s
(
slot
,
hotplug_slots_subsys
);
kobj_set_kset_s
(
slot
,
pci_
hotplug_slots_subsys
);
/* this can fail if we have already registered a slot with the same name */
if
(
kobject_register
(
&
slot
->
kobj
))
{
...
...
@@ -629,8 +629,8 @@ static int __init pci_hotplug_init (void)
{
int
result
;
kset_set_kset_s
(
&
hotplug_slots_subsys
,
pci_bus_type
.
subsys
);
result
=
subsystem_register
(
&
hotplug_slots_subsys
);
kset_set_kset_s
(
&
pci_
hotplug_slots_subsys
,
pci_bus_type
.
subsys
);
result
=
subsystem_register
(
&
pci_
hotplug_slots_subsys
);
if
(
result
)
{
err
(
"Register subsys with error %d
\n
"
,
result
);
goto
exit
;
...
...
@@ -645,7 +645,7 @@ static int __init pci_hotplug_init (void)
goto
exit
;
err_subsys:
subsystem_unregister
(
&
hotplug_slots_subsys
);
subsystem_unregister
(
&
pci_
hotplug_slots_subsys
);
exit:
return
result
;
}
...
...
@@ -653,7 +653,7 @@ static int __init pci_hotplug_init (void)
static
void
__exit
pci_hotplug_exit
(
void
)
{
cpci_hotplug_exit
();
subsystem_unregister
(
&
hotplug_slots_subsys
);
subsystem_unregister
(
&
pci_
hotplug_slots_subsys
);
}
module_init
(
pci_hotplug_init
);
...
...
@@ -665,6 +665,7 @@ MODULE_LICENSE("GPL");
MODULE_PARM
(
debug
,
"i"
);
MODULE_PARM_DESC
(
debug
,
"Debugging mode enabled or not"
);
EXPORT_SYMBOL_GPL
(
pci_hotplug_slots_subsys
);
EXPORT_SYMBOL_GPL
(
pci_hp_register
);
EXPORT_SYMBOL_GPL
(
pci_hp_deregister
);
EXPORT_SYMBOL_GPL
(
pci_hp_change_slot_info
);
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