summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp4xx
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-12-05 20:03:25 +0800
committerBjorn Helgaas <bhelgaas@google.com>2013-12-11 16:53:19 -0700
commit0021c0348bebddbabd81b9ce8784304c956e233e (patch)
tree9072b796c0b5c37175e0179860bfdd0b8f531df2 /arch/arm/mach-ixp4xx
parent920217404778dc249b42738acfbd82079ce24d52 (diff)
downloadlinux-stable-0021c0348bebddbabd81b9ce8784304c956e233e.tar.gz
linux-stable-0021c0348bebddbabd81b9ce8784304c956e233e.tar.bz2
linux-stable-0021c0348bebddbabd81b9ce8784304c956e233e.zip
arm/PCI: Use dev_is_pci() to identify PCI devices
Use dev_is_pci() instead of checking bus type directly. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/arm/mach-ixp4xx')
-rw-r--r--arch/arm/mach-ixp4xx/common-pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-ixp4xx/common-pci.c b/arch/arm/mach-ixp4xx/common-pci.c
index 6d6bde3e15fa..200970d56f6d 100644
--- a/arch/arm/mach-ixp4xx/common-pci.c
+++ b/arch/arm/mach-ixp4xx/common-pci.c
@@ -326,7 +326,7 @@ static int ixp4xx_needs_bounce(struct device *dev, dma_addr_t dma_addr, size_t s
*/
static int ixp4xx_pci_platform_notify(struct device *dev)
{
- if(dev->bus == &pci_bus_type) {
+ if (dev_is_pci(dev)) {
*dev->dma_mask = SZ_64M - 1;
dev->coherent_dma_mask = SZ_64M - 1;
dmabounce_register_dev(dev, 2048, 4096, ixp4xx_needs_bounce);
@@ -336,9 +336,9 @@ static int ixp4xx_pci_platform_notify(struct device *dev)
static int ixp4xx_pci_platform_notify_remove(struct device *dev)
{
- if(dev->bus == &pci_bus_type) {
+ if (dev_is_pci(dev))
dmabounce_unregister_dev(dev);
- }
+
return 0;
}