Commit 752430d
PCI: cpqphp: Use pci_bus_read_dev_vendor_id() to detect presence
The intent of the first part in PCI_RefinedAccessConfig() is to read Vendor
ID register and detect presence of the device that way.
Remove PCI_RefinedAccessConfig() (which was not named very helpfully to
begin with) and replace the call with pci_bus_read_dev_vendor_id() + read
config because it makes the logic more obvious at the caller side.
Link: https://lore.kernel.org/r/20241022091140.3504-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>1 parent e2226db commit 752430d
1 file changed
Lines changed: 6 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | 135 | | |
150 | 136 | | |
151 | 137 | | |
| |||
211 | 197 | | |
212 | 198 | | |
213 | 199 | | |
214 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
215 | 203 | | |
216 | 204 | | |
217 | 205 | | |
| |||
224 | 212 | | |
225 | 213 | | |
226 | 214 | | |
227 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
228 | 218 | | |
229 | 219 | | |
230 | 220 | | |
| |||
0 commit comments