From: Yijing Wang Date: Fri, 6 Dec 2013 06:34:55 +0000 (+0800) Subject: 3c59x/net: Use dev_is_pci() instead of hardcoding X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8535a0a02d6e772122339c131151dfaf007866b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 3c59x/net: Use dev_is_pci() instead of hardcoding Use PCI standard macro dev_is_pci() instead of hardcoding. Signed-off-by: Yijing Wang Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/3com/3c59x.c b/drivers/net/ethernet/3com/3c59x.c index ad5272b348f0..af24c3cf8215 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