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>
This commit is contained in:

committed by
Ralf Baechle

parent
d05c513069
commit
23dac14d05
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user