Files
android_kernel_xiaomi_sm8450/arch/powerpc/kernel
Alexey Kardashevskiy f1e08232ed powerpc/pci: Remove OF node back pointer from pci_dn
The check_req() helper uses pci_get_pdn() to get an OF node pointer.
pci_get_pdn() returns a pci_dn pointer which either:
1) from the OF node returned by pci_device_to_OF_node();
2) from the parent child_list where entries don't have OF node pointers.
Since check_req() does not care about 2), it can call
pci_device_to_OF_node() directly, hence the change.

The find_pe_dn() helper uses embedded pci_dn to get an OF node which is
also stored in edev->pdev so let's take a shortcut and call
pci_device_to_OF_node() directly.

With these 2 changes, we can finally get rid of the OF node back pointer.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-08-31 14:26:12 +10:00
..
2016-06-14 13:58:26 +10:00
2017-08-10 23:32:18 +10:00
2017-06-28 06:54:33 -07:00
2017-08-31 14:26:10 +10:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2017-06-27 17:02:50 -07:00
2017-07-12 16:26:03 -07:00
2017-08-09 23:45:26 +10:00
2017-06-27 12:09:09 +10:00
2015-04-07 17:15:13 +10:00
2017-08-23 22:20:10 +10:00