acpiphp: fix use of list_for_each macro
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 30 Oct 2006 21:07:58 +0000 (13:07 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:36:58 +0000 (14:36 -0800)
commit467c442f092e22acf86a3b4ad4863d097d7257da
tree27741551b8ca054e2c2f053830c7fac65692609b
parenta2302c68d923537436b1114aa207787c1a31bd50
acpiphp: fix use of list_for_each macro

This patch fixes invalid usage of list_for_each()

list_for_each (node, &bridge_list) {
bridge = (struct acpiphp_bridge *)node;
...
}

This code works while the member of list node is located at the
head of struct acpiphp_bridge.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/acpiphp_glue.c