PCI: keystone: Cleanup configuration space access
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 17 Oct 2018 07:41:06 +0000 (13:11 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 17 Oct 2018 08:47:23 +0000 (09:47 +0100)
commit44c747af2be7065d5a6417beacbab8f8a52b5556
tree7ef6aa30d55c6c441d9a30860620cc2c8ecce23a
parent8047eb55129ababe38dd2f1608c4fdc6d3e75aaf
PCI: keystone: Cleanup configuration space access

Cleanup configuration space access by removing ks_pcie_cfg_setup()
which has an unncessary check of "if (bus == 0)" which will never be the
case of *_other_conf() and adding macros for configuring the CFG_SETUP
register required for accessing the configuration space of the device.

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