Skip to content

Commit c0b8f49

Browse files
t-8chgregkh
authored andcommitted
misc/pvpanic-pci: register attributes via pci_driver
[ Upstream commit ee59be3 ] In __pci_register_driver(), the pci core overwrites the dev_groups field of the embedded struct device_driver with the dev_groups from the outer struct pci_driver unconditionally. Set dev_groups in the pci_driver to make sure it is used. This was broken since the introduction of pvpanic-pci. Fixes: db3a4f0 ("misc/pvpanic: add PCI driver") Cc: [email protected] Signed-off-by: Thomas Weißschuh <[email protected]> Fixes: ded13b9 ("PCI: Add support for dev_groups to struct pci_driver") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 96826e7 commit c0b8f49

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/misc/pvpanic/pvpanic-pci.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ static struct pci_driver pvpanic_pci_driver = {
4848
.name = "pvpanic-pci",
4949
.id_table = pvpanic_pci_id_tbl,
5050
.probe = pvpanic_pci_probe,
51-
.driver = {
52-
.dev_groups = pvpanic_dev_groups,
53-
},
51+
.dev_groups = pvpanic_dev_groups,
5452
};
5553
module_pci_driver(pvpanic_pci_driver);

0 commit comments

Comments
 (0)