* [PATCH net v2 2/2] 3c59x/net: Use dev_is_pci() instead of hardcoding
@ 2013-12-06 6:34 Yijing Wang
2013-12-06 17:54 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Yijing Wang @ 2013-12-06 6:34 UTC (permalink / raw)
To: David S. Miller, Steffen Klassert
Cc: netdev, linux-kernel, Yijing Wang, Hanjun Guo
Use PCI standard macro dev_is_pci() instead of hardcoding.
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
---
drivers/net/ethernet/3com/3c59x.c | 2 +-
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
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net v2 2/2] 3c59x/net: Use dev_is_pci() instead of hardcoding
2013-12-06 6:34 [PATCH net v2 2/2] 3c59x/net: Use dev_is_pci() instead of hardcoding Yijing Wang
@ 2013-12-06 17:54 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-12-06 17:54 UTC (permalink / raw)
To: wangyijing; +Cc: klassert, netdev, linux-kernel, guohanjun
From: Yijing Wang <wangyijing@huawei.com>
Date: Fri, 6 Dec 2013 14:34:55 +0800
> Use PCI standard macro dev_is_pci() instead of hardcoding.
>
> Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-06 17:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-06 6:34 [PATCH net v2 2/2] 3c59x/net: Use dev_is_pci() instead of hardcoding Yijing Wang
2013-12-06 17:54 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).