PCI: keystone: Cleanup PHY handling
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 17 Oct 2018 07:41:04 +0000 (13:11 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 17 Oct 2018 08:46:15 +0000 (09:46 +0100)
commit49229238ab47fa1852a89ee55d1e7fb251ee4eb0
tree70a341f0fc41fbe5402543535a96a2ded502e2a9
parentb51a625b784aa9cdac4a177560e19f0a0041ce19
PCI: keystone: Cleanup PHY handling

Cleanup PHY handling by using devm_phy_optional_get() to get PHYs if
the PHYs are optional, creating a device link between the PHY device
and the controller device and disable PHY on error cases here.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/dwc/pci-keystone.c