From 0bf9c3c44bf1bde1c7bec86d33a6e3ccb6e56c90 Mon Sep 17 00:00:00 2001 From: Gavin Shan Date: Fri, 10 Jun 2016 15:03:41 +1000 Subject: core/pci: Return value for struct phb_ops::device_init This adds @data argument and "int" return value for struct phb_ops:: device_init() so that it can be called in pci_walk_dev() directly to reinitialize the PCI devices behind the specified slot in subsequent patches. Signed-off-by: Gavin Shan Signed-off-by: Stewart Smith --- include/pci.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/pci.h') diff --git a/include/pci.h b/include/pci.h index 788f1ef..69be49e 100644 --- a/include/pci.h +++ b/include/pci.h @@ -261,7 +261,8 @@ struct phb_ops { * and before probing further. It can alter things like scan_map * for bridge ports etc... */ - void (*device_init)(struct phb *phb, struct pci_device *device); + int (*device_init)(struct phb *phb, struct pci_device *device, + void *data); /* PHB final fixup is called after PCI probing is completed */ void (*phb_final_fixup)(struct phb *phb); -- cgit v1.1