From dbbe58fbfbbaa04edd04a37fffc4ce1199268693 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Mon, 1 Sep 2003 14:24:40 -0700 Subject: [SUNHME]: Fix non-sbus build. --- drivers/net/sunhme.c | 7 +++++-- 1 file 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 #include +#include #include #include #include @@ -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) -- cgit v1.2.3