]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: altera: Prefer of_device_get_match_data()
authorFan Fei <ffclaire1224@gmail.com>
Thu, 23 Dec 2021 01:10:32 +0000 (19:10 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 3 Jan 2022 21:00:47 +0000 (15:00 -0600)
commit4e0d1adbe7b8703976ea8c6556031cc453a78dbf
treede2098ec5b68fb78fb1a5bb36f44102ed24fe00b
parent40a9af63ae9ec42386d6c40b14f92fb56557c9a8
PCI: altera: Prefer of_device_get_match_data()

The altera 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-2-helgaas@kernel.org
Signed-off-by: Fan Fei <ffclaire1224@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Joyce Ooi <joyce.ooi@intel.com>
drivers/pci/controller/pcie-altera.c