diff options
| author | Jeff Garzik <jgarzik@redhat.com> | 2003-09-01 14:24:40 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-09-01 14:24:40 -0700 |
| commit | dbbe58fbfbbaa04edd04a37fffc4ce1199268693 (patch) | |
| tree | 73b87e19532f8bd2742bec3bb234dde4c27c0196 | |
| parent | c0dae502982c9d399ced26315e4f05d23e4bf881 (diff) | |
[SUNHME]: Fix non-sbus build.
| -rw-r--r-- | drivers/net/sunhme.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c index 76dd82fd4a75..8c786ab7b3c5 100644 --- a/drivers/net/sunhme.c +++ b/drivers/net/sunhme.c @@ -16,8 +16,8 @@ static char version[] = "sunhme.c:v2.02 24/Aug/2003 David S. Miller (davem@redhat.com)\n"; -#include <linux/module.h> #include <linux/config.h> +#include <linux/module.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/fcntl.h> @@ -2504,11 +2504,14 @@ static void hme_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info if (hp->happy_flags & HFLAG_PCI) { struct pci_dev *pdev = hp->happy_dev; strcpy(info->bus_info, pci_name(pdev)); - } else { + } +#ifdef CONFIG_SBUS + else { struct sbus_dev *sdev = hp->happy_dev; sprintf(info->bus_info, "SBUS:%d", sdev->slot); } +#endif } static u32 hme_get_link(struct net_device *dev) |
