[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>
diff --git a/drivers/pci/hotplug/shpchp_ctrl.c b/drivers/pci/hotplug/shpchp_ctrl.c
index 65e6925..3a8e733 100644
--- a/drivers/pci/hotplug/shpchp_ctrl.c
+++ b/drivers/pci/hotplug/shpchp_ctrl.c
@@ -688,7 +688,7 @@
if (pushbutton_pending)
shpchp_pushbutton_thread(pushbutton_pending);
else
- for (ctrl = shpchp_ctrl_list; ctrl; ctrl=ctrl->next)
+ list_for_each_entry(ctrl, &shpchp_ctrl_list, ctrl_list)
interrupt_event_handler(ctrl);
}
dbg("event_thread signals exit\n");