]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: cadence: Prefer of_device_get_match_data()
authorFan Fei <ffclaire1224@gmail.com>
Thu, 23 Dec 2021 01:10:34 +0000 (19:10 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 3 Jan 2022 21:01:04 +0000 (15:01 -0600)
commit3d47dac1f6fa2194de0961c24053cf1dfcff4e7a
tree014eebcd995b726830585962d71715dbe8bc51e9
parent9198e96a5767abec9b2cd8e6f623272b1b8c553b
PCI: cadence: Prefer of_device_get_match_data()

The cadence 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-4-helgaas@kernel.org
Signed-off-by: Fan Fei <ffclaire1224@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Tom Joseph <tjoseph@cadence.com>
drivers/pci/controller/cadence/pcie-cadence-plat.c