OpenCloudOS-Kernel/drivers/misc/cxl
Uwe Kleine-König 16bd44e54d cxl: Use to_pci_driver() instead of pci_dev->driver
Struct pci_driver contains a struct device_driver, so for PCI devices, it's
easy to convert a device_driver * to a pci_driver * with to_pci_driver().
The device_driver * is in struct device, so we don't need to also keep
track of the pci_driver * in struct pci_dev.

Replace pdev->driver with to_pci_driver().  This is a step toward removing
pci_dev->driver.

[bhelgaas: split to separate patch]
Link: https://lore.kernel.org/r/20211004125935.2300113-11-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2021-10-18 09:20:15 -05:00
..
Kconfig cxl: Remove dead Kconfig options 2020-06-02 20:59:21 +10:00
Makefile Revert "cxl: Allow a default context to be associated with an external pci_dev" 2018-07-02 23:54:33 +10:00
api.c Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2019-07-19 10:42:02 -07:00
base.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
context.c cxl: Fix couple of spellings 2021-03-24 08:26:30 +01:00
cxl.h cxl: no need to check return value of debugfs_create functions 2019-06-18 13:40:25 +02:00
cxllib.c cxl: Reduce scope for the variable “mm” in cxllib_get_PE_attributes() 2021-01-31 22:35:50 +11:00
debugfs.c cxl: no need to check return value of debugfs_create functions 2019-06-18 13:40:25 +02:00
fault.c cxl: don't manipulate the mm.mm_users field directly 2021-03-24 08:26:30 +01:00
file.c cxl: Fix an error message 2021-05-14 13:43:26 +02:00
flash.c misc: cxl: flash: Remove unused variable 'drc_index' 2020-07-10 14:55:24 +02:00
guest.c cxl: Use to_pci_driver() instead of pci_dev->driver 2021-10-18 09:20:15 -05:00
hcalls.c misc: cxl: hcalls: Demote half-assed kerneldoc attempt 2020-07-01 15:08:05 +02:00
hcalls.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
irq.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
main.c powerpc/64s/radix: introduce options to disable use of the tlbie instruction 2019-09-05 14:22:41 +10:00
native.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
of.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pci.c cxl: Use to_pci_driver() instead of pci_dev->driver 2021-10-18 09:20:15 -05:00
sysfs.c cxl: Simplify bool conversion 2021-02-04 17:02:18 +01:00
trace.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
trace.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
vphb.c cxl: Change PCIBIOS_SUCCESSFUL to 0 2020-07-13 15:39:52 +02:00