]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: designware-plat: Prefer of_device_get_match_data()
authorFan Fei <ffclaire1224@gmail.com>
Thu, 23 Dec 2021 01:10:35 +0000 (19:10 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 3 Jan 2022 21:01:09 +0000 (15:01 -0600)
commit5c204204cf243136804b3a9da77d091e3f803668
tree4c3ea0ff23ef743ccd372a6972200155a30bbf68
parent131748ad2939dfaf20b3178112dbd52591d39148
PCI: designware-plat: Prefer of_device_get_match_data()

The designware-plat driver only needs the device data, not the whole struct
of_device_id.  Use of_device_get_match_data() instead of of_match_device().
No functional change intended.

[bhelgaas: commit log]
Link: https://lore.kernel.org/r/20211223011054.1227810-5-helgaas@kernel.org
Signed-off-by: Fan Fei <ffclaire1224@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jingoo Han <jingoohan1@gmail.com>
Cc: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
drivers/pci/controller/dwc/pcie-designware-plat.c