PCI: Add pci_bus_set_ops
authorHuang Ying <ying.huang@intel.com>
Fri, 24 Apr 2009 02:45:17 +0000 (10:45 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 16 Jun 2009 21:29:33 +0000 (14:29 -0700)
commita72b46c3849cdb05993015991bde548ab8b6d7ac
treea782d4ab9c217792c9a8cefe48db9aebc0734dbe
parent1eb3948716f68bdb71509d0175765295f1aca23d
PCI: Add pci_bus_set_ops

pci_bus_set_ops changes pci_ops associated with a pci_bus. This can be
used by debug tools such as PCIE AER error injection to fake some PCI
configuration registers.

Acked-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/access.c
include/linux/pci.h