diff options
Diffstat (limited to 'drivers/net/atl1/atl1_ethtool.c')
-rw-r--r-- | drivers/net/atl1/atl1_ethtool.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/drivers/net/atl1/atl1_ethtool.c b/drivers/net/atl1/atl1_ethtool.c index c11c27798e5c..1f616c5c1473 100644 --- a/drivers/net/atl1/atl1_ethtool.c +++ b/drivers/net/atl1/atl1_ethtool.c | |||
@@ -156,8 +156,7 @@ static int atl1_set_settings(struct net_device *netdev, | |||
156 | u16 old_media_type = hw->media_type; | 156 | u16 old_media_type = hw->media_type; |
157 | 157 | ||
158 | if (netif_running(adapter->netdev)) { | 158 | if (netif_running(adapter->netdev)) { |
159 | printk(KERN_DEBUG "%s: ethtool shutting down adapter\n", | 159 | dev_dbg(&adapter->pdev->dev, "ethtool shutting down adapter\n"); |
160 | atl1_driver_name); | ||
161 | atl1_down(adapter); | 160 | atl1_down(adapter); |
162 | } | 161 | } |
163 | 162 | ||
@@ -166,9 +165,8 @@ static int atl1_set_settings(struct net_device *netdev, | |||
166 | else { | 165 | else { |
167 | if (ecmd->speed == SPEED_1000) { | 166 | if (ecmd->speed == SPEED_1000) { |
168 | if (ecmd->duplex != DUPLEX_FULL) { | 167 | if (ecmd->duplex != DUPLEX_FULL) { |
169 | printk(KERN_WARNING | 168 | dev_warn(&adapter->pdev->dev, |
170 | "%s: can't force to 1000M half duplex\n", | 169 | "can't force to 1000M half duplex\n"); |
171 | atl1_driver_name); | ||
172 | ret_val = -EINVAL; | 170 | ret_val = -EINVAL; |
173 | goto exit_sset; | 171 | goto exit_sset; |
174 | } | 172 | } |
@@ -206,9 +204,8 @@ static int atl1_set_settings(struct net_device *netdev, | |||
206 | } | 204 | } |
207 | if (atl1_phy_setup_autoneg_adv(hw)) { | 205 | if (atl1_phy_setup_autoneg_adv(hw)) { |
208 | ret_val = -EINVAL; | 206 | ret_val = -EINVAL; |
209 | printk(KERN_WARNING | 207 | dev_warn(&adapter->pdev->dev, |
210 | "%s: invalid ethtool speed/duplex setting\n", | 208 | "invalid ethtool speed/duplex setting\n"); |
211 | atl1_driver_name); | ||
212 | goto exit_sset; | 209 | goto exit_sset; |
213 | } | 210 | } |
214 | if (hw->media_type == MEDIA_TYPE_AUTO_SENSOR || | 211 | if (hw->media_type == MEDIA_TYPE_AUTO_SENSOR || |
@@ -239,12 +236,10 @@ exit_sset: | |||
239 | hw->media_type = old_media_type; | 236 | hw->media_type = old_media_type; |
240 | 237 | ||
241 | if (netif_running(adapter->netdev)) { | 238 | if (netif_running(adapter->netdev)) { |
242 | printk(KERN_DEBUG "%s: ethtool starting adapter\n", | 239 | dev_dbg(&adapter->pdev->dev, "ethtool starting adapter\n"); |
243 | atl1_driver_name); | ||
244 | atl1_up(adapter); | 240 | atl1_up(adapter); |
245 | } else if (!ret_val) { | 241 | } else if (!ret_val) { |
246 | printk(KERN_DEBUG "%s: ethtool resetting adapter\n", | 242 | dev_dbg(&adapter->pdev->dev, "ethtool resetting adapter\n"); |
247 | atl1_driver_name); | ||
248 | atl1_reset(adapter); | 243 | atl1_reset(adapter); |
249 | } | 244 | } |
250 | return ret_val; | 245 | return ret_val; |