summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/3com/3c59x.c
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-12-06 14:34:55 +0800
committerDavid S. Miller <davem@davemloft.net>2013-12-06 12:51:40 -0500
commitd8535a0a02d6e772122339c131151dfaf007866b (patch)
treedf1a6e99330507015dcfd5a35880184c5a285852 /drivers/net/ethernet/3com/3c59x.c
parent5349d937739a752b3a3c0981543c13654af3bec9 (diff)
downloadop-kernel-dev-d8535a0a02d6e772122339c131151dfaf007866b.zip
op-kernel-dev-d8535a0a02d6e772122339c131151dfaf007866b.tar.gz
3c59x/net: Use dev_is_pci() instead of hardcoding
Use PCI standard macro dev_is_pci() instead of hardcoding. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/3com/3c59x.c')
-rw-r--r--drivers/net/ethernet/3com/3c59x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/3com/3c59x.c b/drivers/net/ethernet/3com/3c59x.c
index ad5272b..af24c3c 100644
--- a/drivers/net/ethernet/3com/3c59x.c
+++ b/drivers/net/ethernet/3com/3c59x.c
@@ -693,7 +693,7 @@ DEFINE_WINDOW_IO(16)
DEFINE_WINDOW_IO(32)
#ifdef CONFIG_PCI
-#define DEVICE_PCI(dev) (((dev)->bus == &pci_bus_type) ? to_pci_dev((dev)) : NULL)
+#define DEVICE_PCI(dev) ((dev_is_pci(dev)) ? to_pci_dev((dev)) : NULL)
#else
#define DEVICE_PCI(dev) NULL
#endif
OpenPOWER on IntegriCloud