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

Dmitry Torokhov
2006-01-18T03:55:59Z

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