diff options
Diffstat (limited to 'net/wireless/sysfs.c')
-rw-r--r-- | net/wireless/sysfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/wireless/sysfs.c b/net/wireless/sysfs.c index 14b3f007826d..16b6b5988be9 100644 --- a/net/wireless/sysfs.c +++ b/net/wireless/sysfs.c | |||
@@ -39,9 +39,11 @@ SHOW_FMT(address_mask, "%pM", wiphy.addr_mask); | |||
39 | 39 | ||
40 | static ssize_t name_show(struct device *dev, | 40 | static ssize_t name_show(struct device *dev, |
41 | struct device_attribute *attr, | 41 | struct device_attribute *attr, |
42 | char *buf) { | 42 | char *buf) |
43 | { | ||
43 | struct wiphy *wiphy = &dev_to_rdev(dev)->wiphy; | 44 | struct wiphy *wiphy = &dev_to_rdev(dev)->wiphy; |
44 | return sprintf(buf, "%s\n", dev_name(&wiphy->dev)); | 45 | |
46 | return sprintf(buf, "%s\n", wiphy_name(wiphy)); | ||
45 | } | 47 | } |
46 | static DEVICE_ATTR_RO(name); | 48 | static DEVICE_ATTR_RO(name); |
47 | 49 | ||