PCI: Remove unused 'node' member from struct pci_driver
Subsystems (2)
PATCH 1/1 PCI: Remove unused 'node' member from struct pci_driver
Remove the unused 'node' member. It got replaced by device_driver chaining more than 20 years ago in commit 4b4a837f2b57 ("PCI: start to use common fields of struct device_driver more...") of the history.git tree.
---
There is only one "user" that makes use of the 'node' member, which is the brcm80211 driver. However, its "use" is clearly wrong (a list head cannot be initialized this way) and, obviously, not needed.
If netdev folks instead want to split this off into a separate commit, I can do that. However, I don't expect any cross-tree conflicts regarding this change.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 1 - include/linux/pci.h | 2 -- 2 files changed, 3 deletions(-)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c +0 -1
@@ -2707,7 +2707,6 @@ MODULE_DEVICE_TABLE(pci, brcmf_pcie_devid_table);static struct pci_driver brcmf_pciedrvr = { - .node = {}, .name =KBUILD_MODNAME , .id_table = brcmf_pcie_devid_table, .probe = brcmf_pcie_probe,
include/linux/pci.h +0 -2
@@ -885,7 +885,6 @@ struct module;/** * struct pci_driver - PCI driver structure -* @node: List of driver structures. * @name: Driver name. * @id_table: Pointer to table of device IDs the driver is * interested in. Most drivers should export this
@@ -940,7 +939,6 @@ struct module;* own I/O address space. */ struct pci_driver { -struct list_head node;const char *name;const struct pci_device_id *id_table;/* Must be non-NULL for probe to be called */ int (*probe)(struct pci_dev *dev,const struct pci_device_id *id);/* New device inserted */
Signature · 1 line
2.39.2
Quoted 11 lines · Mathias Krause
Remove the unused 'node' member. It got replaced by
device_driverchaining more than 20 years ago in commit4b4a837f2b57("PCI: start to use common fields of structdevice_drivermore...") of the history.git tree.Signed-off-by Mathias Krause <[email protected]>---
There is only one "user" that makes use of the 'node' member, which is the brcm80211 driver. However, its "use" is clearly wrong (a list head cannot be initialized this way) and, obviously, not needed.
Quoted 7 lines
If netdev folks instead want to split this off into a separate commit, I can do that. However, I don't expect any cross-tree conflicts regarding this change.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 1 - include/linux/pci.h | 2 -- 2 files changed, 3 deletions(-)
No need to split anything, feel free to take this via PCI tree:
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 6 lines · Mathias Krause
Remove the unused 'node' member. It got replaced by
device_driverchaining more than 20 years ago in commit4b4a837f2b57("PCI: start to use common fields of structdevice_drivermore...") of the history.git tree.Signed-off-by Mathias Krause <[email protected]>
Applied with Kalle's ack to pci/misc for v6.8, thanks!
Quoted 48 lines
---
There is only one "user" that makes use of the 'node' member, which is the brcm80211 driver. However, its "use" is clearly wrong (a list head cannot be initialized this way) and, obviously, not needed.If netdev folks instead want to split this off into a separate commit, I can do that. However, I don't expect any cross-tree conflicts regarding this change.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 1 - include/linux/pci.h | 2 -- 2 files changed, 3 deletions(-)drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c +0
-1@@ -2707,7 +2707,6 @@ MODULE_DEVICE_TABLE(pci, brcmf_pcie_devid_table);static struct pci_driver brcmf_pciedrvr = { - .node = {}, .name =KBUILD_MODNAME , .id_table = brcmf_pcie_devid_table, .probe = brcmf_pcie_probe,include/linux/pci.h +0
-2@@ -885,7 +885,6 @@ struct module;/** * struct pci_driver - PCI driver structure -* @node: List of driver structures. * @name: Driver name. * @id_table: Pointer to table of device IDs the driver is * interested in. Most drivers should export this @@ -940,7 +939,6 @@ struct module;* own I/O address space. */ struct pci_driver { -struct list_head node;const char *name;const struct pci_device_id *id_table;/* Must be non-NULL for probe to be called */ int (*probe)(struct pci_dev *dev,const struct pci_device_id *id);/* New device inserted */ Signature · 1 line
2.39.2