Re: [patch 2/4] acpiphp: handle dock bridges

From: Dmitry Torokhov
Date: Tue Jan 17 2006 - 22:54:53 EST


On Tuesday 17 January 2006 19:56, Kristen Accardi wrote:

> +
> + down(&slot->crit_sect);
> + list_for_each(l, &slot->funcs) {
> + func = list_entry(l, struct acpiphp_func, sibling);

list_for_each_entry() maybe?

> +static struct acpiphp_func * get_func(struct acpiphp_slot *slot,
> + struct pci_dev *dev)
> +{
> + struct list_head *l;
> + struct acpiphp_func *func;
> + struct pci_bus *bus = slot->bridge->pci_bus;
> +
> + list_for_each (l, &slot->funcs) {
> + func = list_entry(l, struct acpiphp_func, sibling);

And here?

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/