powerpc/pseries: Cleanup on pci_dn_reconfig_notifier()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 27 Aug 2015 04:12:37 +0000 (14:12 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 28 Aug 2015 01:33:51 +0000 (11:33 +1000)
commitea0f8acf4d44727f7d3a38072566029bf5e17b44
tree64fe0ca1aa0a362ec0ddd9f88a0a1efece983b51
parent590c7567a2895f939525ead57b0334c6d47986f0
powerpc/pseries: Cleanup on pci_dn_reconfig_notifier()

This applies cleanup on pci_dn_reconfig_notifier(), no functional
changes:

   * Rename variable "pci" to "pdn" to indicate its purpose clearly.
   * The parent node can be released at any time. So it should be
     hold with of_get_parent() before accessing it.
   * The device node doesn't have to have parent node in theory.
     More check on this.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/setup.c