OSDN Git Service

cxl: Factor out common dev->driver expressions
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 12 Oct 2021 20:51:32 +0000 (15:51 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 18 Oct 2021 14:20:07 +0000 (09:20 -0500)
commit4e59b75430f0bf515ac0a6b2d61861aefc601776
treeabffc9ed66224b0fd6422aaf255a9160546d9ade
parent43e85554d4ed1cb2eec417cc43cb5fc60157235e
cxl: Factor out common dev->driver expressions

Save the struct pci_driver and struct pci_error_handlers pointers from
pdev->driver instead of chasing the pointers several times.  No functional
change intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/misc/cxl/guest.c
drivers/misc/cxl/pci.c