diff options
author | Paul Burton <paul.burton@imgtec.com> | 2016-10-05 19:18:07 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-10-06 17:56:13 +0200 |
commit | 23dac14d058fcd7cb2b4e6389139ca065855afe7 (patch) | |
tree | 24c6ac358767d802528bc7de3535cdd4e2964be6 /arch/mips/include/asm/pci.h | |
parent | MIPS: tracing: disable uprobe/kprobe on compact branch instructions (diff) | |
download | linux-23dac14d058fcd7cb2b4e6389139ca065855afe7.tar.xz linux-23dac14d058fcd7cb2b4e6389139ca065855afe7.zip |
MIPS: PCI: Use struct list_head lists
Rather than open-coding a linked list implementation, make use of the
one in linux/list.h.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14340/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/pci.h')
-rw-r--r-- | arch/mips/include/asm/pci.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/include/asm/pci.h b/arch/mips/include/asm/pci.h index 9b63cd41213d..547e113ac0fe 100644 --- a/arch/mips/include/asm/pci.h +++ b/arch/mips/include/asm/pci.h @@ -17,6 +17,7 @@ */ #include <linux/ioport.h> +#include <linux/list.h> #include <linux/of.h> /* @@ -25,7 +26,7 @@ * single controller supporting multiple channels. */ struct pci_controller { - struct pci_controller *next; + struct list_head list; struct pci_bus *bus; struct device_node *of_node; |