OpenCloudOS-Kernel/drivers/misc/pvpanic
Thomas Weißschuh c6fecd0743 misc/pvpanic-pci: register attributes via pci_driver
[ Upstream commit ee59be35d7a8be7fcaa2d61fb89734ab5c25e4ee ]

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: db3a4f0abe ("misc/pvpanic: add PCI driver")
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Fixes: ded13b9cfd ("PCI: Add support for dev_groups to struct pci_driver")
Link: https://lore.kernel.org/r/20240411-pvpanic-pci-dev-groups-v1-1-db8cb69f1b09@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:12:35 +02:00
..
Kconfig misc/pvpanic: add PCI driver 2021-03-28 14:57:11 +02:00
Makefile misc/pvpanic: add PCI driver 2021-03-28 14:57:11 +02:00
pvpanic-mmio.c misc/pvpanic: deduplicate common code 2024-06-12 11:12:34 +02:00
pvpanic-pci.c misc/pvpanic-pci: register attributes via pci_driver 2024-06-12 11:12:35 +02:00
pvpanic.c misc/pvpanic: deduplicate common code 2024-06-12 11:12:34 +02:00
pvpanic.h misc/pvpanic: deduplicate common code 2024-06-12 11:12:34 +02:00