diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-03-04 00:55:08 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 11:00:55 -0400 |
commit | 0ae08183d89fa48c0e4be019f45b93ad638c3890 (patch) | |
tree | 65035119b70a627588873f9441e789cfa22bc04e /drivers/net | |
parent | 99d3184ac7b4e91c88073f474ebe758540b3ad82 (diff) |
[PATCH] bcm43xx: do not rebuild when kernel version changes
In bcm43xx_ethtool, UTS_RELEASE is used. Replacing this with utsname()->release
avoids rebuilding this module each time the kernel version changes.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c b/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c index c947025d655f..d2df6a0100a1 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <linux/netdevice.h> | 32 | #include <linux/netdevice.h> |
33 | #include <linux/pci.h> | 33 | #include <linux/pci.h> |
34 | #include <linux/string.h> | 34 | #include <linux/string.h> |
35 | #include <linux/utsrelease.h> | 35 | #include <linux/utsname.h> |
36 | 36 | ||
37 | 37 | ||
38 | static void bcm43xx_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | 38 | static void bcm43xx_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) |
@@ -40,7 +40,7 @@ static void bcm43xx_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo * | |||
40 | struct bcm43xx_private *bcm = bcm43xx_priv(dev); | 40 | struct bcm43xx_private *bcm = bcm43xx_priv(dev); |
41 | 41 | ||
42 | strncpy(info->driver, KBUILD_MODNAME, sizeof(info->driver)); | 42 | strncpy(info->driver, KBUILD_MODNAME, sizeof(info->driver)); |
43 | strncpy(info->version, UTS_RELEASE, sizeof(info->version)); | 43 | strncpy(info->version, utsname()->release, sizeof(info->version)); |
44 | strncpy(info->bus_info, pci_name(bcm->pci_dev), ETHTOOL_BUSINFO_LEN); | 44 | strncpy(info->bus_info, pci_name(bcm->pci_dev), ETHTOOL_BUSINFO_LEN); |
45 | } | 45 | } |
46 | 46 | ||