diff options
author | Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> | 2006-01-25 19:58:30 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-23 17:35:11 -0500 |
commit | a4534560815ffc525bfbe465a290ce048aab4c01 (patch) | |
tree | 28a444dc6b9667bdf16f83ab7a339ff7c5e820a2 /drivers/pci/hotplug/shpchp.h | |
parent | 5b1a960d180e9660a87b0c661a754efabc1b1d3a (diff) |
[PATCH] shpchp - cleanup controller list
This patch changes SHPCHP driver to use list_head structure for
managing controller list.
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/shpchp.h')
-rw-r--r-- | drivers/pci/hotplug/shpchp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/shpchp.h b/drivers/pci/hotplug/shpchp.h index c0be7a1c3ff7..f6d606dde691 100644 --- a/drivers/pci/hotplug/shpchp.h +++ b/drivers/pci/hotplug/shpchp.h | |||
@@ -78,7 +78,7 @@ struct event_info { | |||
78 | }; | 78 | }; |
79 | 79 | ||
80 | struct controller { | 80 | struct controller { |
81 | struct controller *next; | 81 | struct list_head ctrl_list; |
82 | struct mutex crit_sect; /* critical section mutex */ | 82 | struct mutex crit_sect; /* critical section mutex */ |
83 | struct php_ctlr_state_s *hpc_ctlr_handle; /* HPC controller handle */ | 83 | struct php_ctlr_state_s *hpc_ctlr_handle; /* HPC controller handle */ |
84 | int num_slots; /* Number of slots on ctlr */ | 84 | int num_slots; /* Number of slots on ctlr */ |
@@ -204,7 +204,7 @@ extern void shpchp_remove_ctrl_files(struct controller *ctrl); | |||
204 | 204 | ||
205 | 205 | ||
206 | /* Global variables */ | 206 | /* Global variables */ |
207 | extern struct controller *shpchp_ctrl_list; | 207 | extern struct list_head shpchp_ctrl_list; |
208 | 208 | ||
209 | struct ctrl_reg { | 209 | struct ctrl_reg { |
210 | volatile u32 base_offset; | 210 | volatile u32 base_offset; |