diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2013-06-18 12:45:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-20 01:18:52 -0400 |
commit | 776fbcc9cbece10756bdb67b48a0798e6446f16b (patch) | |
tree | 34edd470f62668234701d4bc6c02990a7c07593c /drivers/net/ethernet | |
parent | 3ac19c900cf4a46748d789c49d84a58c37b93841 (diff) |
sfc: Remove write permission from phy_type attribute
Driver probe currently results in:
WARNING: at drivers/base/core.c:576 device_create_file+0x57/0x7e()
Attribute phy_type: write permission without 'store'
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 39e4cb39de29..4a14a940c65e 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c | |||
@@ -2139,7 +2139,7 @@ show_phy_type(struct device *dev, struct device_attribute *attr, char *buf) | |||
2139 | struct efx_nic *efx = pci_get_drvdata(to_pci_dev(dev)); | 2139 | struct efx_nic *efx = pci_get_drvdata(to_pci_dev(dev)); |
2140 | return sprintf(buf, "%d\n", efx->phy_type); | 2140 | return sprintf(buf, "%d\n", efx->phy_type); |
2141 | } | 2141 | } |
2142 | static DEVICE_ATTR(phy_type, 0644, show_phy_type, NULL); | 2142 | static DEVICE_ATTR(phy_type, 0444, show_phy_type, NULL); |
2143 | 2143 | ||
2144 | static int efx_register_netdev(struct efx_nic *efx) | 2144 | static int efx_register_netdev(struct efx_nic *efx) |
2145 | { | 2145 | { |