File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -191,7 +191,14 @@ static inline bool zdev_enabled(struct zpci_dev *zdev)
191191 return (zdev -> fh & (1UL << 31 )) ? true : false;
192192}
193193
194- extern const struct attribute_group * zpci_attr_groups [];
194+ extern const struct attribute_group zpci_attr_group ;
195+ extern const struct attribute_group pfip_attr_group ;
196+ extern const struct attribute_group zpci_ident_attr_group ;
197+
198+ #define ARCH_PCI_DEV_GROUPS &zpci_attr_group, \
199+ &pfip_attr_group, \
200+ &zpci_ident_attr_group,
201+
195202extern unsigned int s390_pci_force_floating __initdata ;
196203extern unsigned int s390_pci_no_rid ;
197204
Original file line number Diff line number Diff line change 33# Makefile for the s390 PCI subsystem.
44#
55
6- obj-$(CONFIG_PCI) += pci.o pci_irq.o pci_clp.o pci_sysfs.o \
6+ obj-$(CONFIG_PCI) += pci.o pci_irq.o pci_clp.o \
77 pci_event.o pci_debug.o pci_insn.o pci_mmio.o \
88 pci_bus.o pci_kvm_hook.o
99obj-$(CONFIG_PCI_IOV) += pci_iov.o
10+ obj-$(CONFIG_SYSFS) += pci_sysfs.o
Original file line number Diff line number Diff line change @@ -587,7 +587,6 @@ int pcibios_device_add(struct pci_dev *pdev)
587587 if (pdev -> is_physfn )
588588 pdev -> no_vf_scan = 1 ;
589589
590- pdev -> dev .groups = zpci_attr_groups ;
591590 zpci_map_resources (pdev );
592591
593592 for (i = 0 ; i < PCI_STD_NUM_BARS ; i ++ ) {
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ static struct attribute *zpci_ident_attrs[] = {
197197 NULL ,
198198};
199199
200- static struct attribute_group zpci_ident_attr_group = {
200+ const struct attribute_group zpci_ident_attr_group = {
201201 .attrs = zpci_ident_attrs ,
202202 .is_visible = zpci_index_is_visible ,
203203};
@@ -223,7 +223,7 @@ static struct attribute *zpci_dev_attrs[] = {
223223 NULL ,
224224};
225225
226- static struct attribute_group zpci_attr_group = {
226+ const struct attribute_group zpci_attr_group = {
227227 .attrs = zpci_dev_attrs ,
228228 .bin_attrs = zpci_bin_attrs ,
229229};
@@ -235,14 +235,8 @@ static struct attribute *pfip_attrs[] = {
235235 & dev_attr_segment3 .attr ,
236236 NULL ,
237237};
238- static struct attribute_group pfip_attr_group = {
238+
239+ const struct attribute_group pfip_attr_group = {
239240 .name = "pfip" ,
240241 .attrs = pfip_attrs ,
241242};
242-
243- const struct attribute_group * zpci_attr_groups [] = {
244- & zpci_attr_group ,
245- & pfip_attr_group ,
246- & zpci_ident_attr_group ,
247- NULL ,
248- };
Original file line number Diff line number Diff line change 3131#include <linux/aperture.h>
3232#include "pci.h"
3333
34+ #ifndef ARCH_PCI_DEV_GROUPS
35+ #define ARCH_PCI_DEV_GROUPS
36+ #endif
37+
3438static int sysfs_initialized ; /* = 0 */
3539
3640/* show configuration fields */
@@ -1624,6 +1628,7 @@ const struct attribute_group *pci_dev_groups[] = {
16241628 & pci_dev_acpi_attr_group ,
16251629#endif
16261630 & pci_dev_resource_resize_group ,
1631+ ARCH_PCI_DEV_GROUPS
16271632 NULL ,
16281633};
16291634
You can’t perform that action at this time.
0 commit comments