]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Fix OF logic in pci_dma_configure()
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Thu, 19 Nov 2015 00:49:52 +0000 (16:49 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 20 Nov 2015 00:20:36 +0000 (01:20 +0100)
commitf007f6082406d12f22643c6d10d7188785628810
tree65b4962b7b9b61599f42544645367dee0c545c48
parent9596f2f538228287ae7a289d7fc82145b6eabdac
PCI: Fix OF logic in pci_dma_configure()

This patch fixes a bug introduced by previous commit,
which incorrectly checkes the of_node of the end-point device.
Instead, it should check the of_node of the host bridge.

Fixes: 123e9fe5266e ("PCI: OF: Move of_pci_dma_configure() to pci_dma_configure()")
Reported-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/probe.c