diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-02-28 18:42:50 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 04:54:46 -0400 |
commit | dadb830dac401c4b1420ee2fd6c7559871b43319 (patch) | |
tree | ca0b6ea4ed14bc7305bff267dc2e950cddfe7ecb /drivers/net | |
parent | 9f47df264fa53e562cafa0de4a405d0846a81fbd (diff) |
[SUNGEM]: __sparc__ --> CONFIG_SPARC
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/sungem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c index bb07b79817f4..4fa3e49f9358 100644 --- a/drivers/net/sungem.c +++ b/drivers/net/sungem.c | |||
@@ -64,7 +64,7 @@ | |||
64 | #include <asm/uaccess.h> | 64 | #include <asm/uaccess.h> |
65 | #include <asm/irq.h> | 65 | #include <asm/irq.h> |
66 | 66 | ||
67 | #ifdef __sparc__ | 67 | #ifdef CONFIG_SPARC |
68 | #include <asm/idprom.h> | 68 | #include <asm/idprom.h> |
69 | #include <asm/openprom.h> | 69 | #include <asm/openprom.h> |
70 | #include <asm/oplib.h> | 70 | #include <asm/oplib.h> |
@@ -2849,7 +2849,7 @@ static int gem_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | |||
2849 | return rc; | 2849 | return rc; |
2850 | } | 2850 | } |
2851 | 2851 | ||
2852 | #if (!defined(__sparc__) && !defined(CONFIG_PPC_PMAC)) | 2852 | #if (!defined(CONFIG_SPARC) && !defined(CONFIG_PPC_PMAC)) |
2853 | /* Fetch MAC address from vital product data of PCI ROM. */ | 2853 | /* Fetch MAC address from vital product data of PCI ROM. */ |
2854 | static int find_eth_addr_in_vpd(void __iomem *rom_base, int len, unsigned char *dev_addr) | 2854 | static int find_eth_addr_in_vpd(void __iomem *rom_base, int len, unsigned char *dev_addr) |
2855 | { | 2855 | { |
@@ -2904,11 +2904,11 @@ static void get_gem_mac_nonobp(struct pci_dev *pdev, unsigned char *dev_addr) | |||
2904 | 2904 | ||
2905 | static int __devinit gem_get_device_address(struct gem *gp) | 2905 | static int __devinit gem_get_device_address(struct gem *gp) |
2906 | { | 2906 | { |
2907 | #if defined(__sparc__) || defined(CONFIG_PPC_PMAC) | 2907 | #if defined(CONFIG_SPARC) || defined(CONFIG_PPC_PMAC) |
2908 | struct net_device *dev = gp->dev; | 2908 | struct net_device *dev = gp->dev; |
2909 | #endif | 2909 | #endif |
2910 | 2910 | ||
2911 | #if defined(__sparc__) | 2911 | #if defined(CONFIG_SPARC) |
2912 | struct pci_dev *pdev = gp->pdev; | 2912 | struct pci_dev *pdev = gp->pdev; |
2913 | struct pcidev_cookie *pcp = pdev->sysdata; | 2913 | struct pcidev_cookie *pcp = pdev->sysdata; |
2914 | int use_idprom = 1; | 2914 | int use_idprom = 1; |