diff options
Diffstat (limited to 'drivers/net/gianfar_ethtool.c')
-rw-r--r-- | drivers/net/gianfar_ethtool.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/gianfar_ethtool.c b/drivers/net/gianfar_ethtool.c index e0f505285e50..de8da82cb7ee 100644 --- a/drivers/net/gianfar_ethtool.c +++ b/drivers/net/gianfar_ethtool.c | |||
@@ -10,8 +10,8 @@ | |||
10 | * | 10 | * |
11 | * Copyright (c) 2003,2004 Freescale Semiconductor, Inc. | 11 | * Copyright (c) 2003,2004 Freescale Semiconductor, Inc. |
12 | * | 12 | * |
13 | * This software may be used and distributed according to | 13 | * This software may be used and distributed according to |
14 | * the terms of the GNU Public License, Version 2, incorporated herein | 14 | * the terms of the GNU Public License, Version 2, incorporated herein |
15 | * by reference. | 15 | * by reference. |
16 | */ | 16 | */ |
17 | 17 | ||
@@ -202,7 +202,7 @@ static int gfar_gsettings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
202 | 202 | ||
203 | if (NULL == phydev) | 203 | if (NULL == phydev) |
204 | return -ENODEV; | 204 | return -ENODEV; |
205 | 205 | ||
206 | cmd->maxtxpkt = priv->txcount; | 206 | cmd->maxtxpkt = priv->txcount; |
207 | cmd->maxrxpkt = priv->rxcount; | 207 | cmd->maxrxpkt = priv->rxcount; |
208 | 208 | ||
@@ -281,7 +281,7 @@ static unsigned int gfar_ticks2usecs(struct gfar_private *priv, unsigned int tic | |||
281 | static int gfar_gcoalesce(struct net_device *dev, struct ethtool_coalesce *cvals) | 281 | static int gfar_gcoalesce(struct net_device *dev, struct ethtool_coalesce *cvals) |
282 | { | 282 | { |
283 | struct gfar_private *priv = netdev_priv(dev); | 283 | struct gfar_private *priv = netdev_priv(dev); |
284 | 284 | ||
285 | if (!(priv->einfo->device_flags & FSL_GIANFAR_DEV_HAS_COALESCE)) | 285 | if (!(priv->einfo->device_flags & FSL_GIANFAR_DEV_HAS_COALESCE)) |
286 | return -EOPNOTSUPP; | 286 | return -EOPNOTSUPP; |
287 | 287 | ||
@@ -555,13 +555,13 @@ static uint32_t gfar_get_tx_csum(struct net_device *dev) | |||
555 | } | 555 | } |
556 | 556 | ||
557 | static uint32_t gfar_get_msglevel(struct net_device *dev) | 557 | static uint32_t gfar_get_msglevel(struct net_device *dev) |
558 | { | 558 | { |
559 | struct gfar_private *priv = netdev_priv(dev); | 559 | struct gfar_private *priv = netdev_priv(dev); |
560 | return priv->msg_enable; | 560 | return priv->msg_enable; |
561 | } | 561 | } |
562 | 562 | ||
563 | static void gfar_set_msglevel(struct net_device *dev, uint32_t data) | 563 | static void gfar_set_msglevel(struct net_device *dev, uint32_t data) |
564 | { | 564 | { |
565 | struct gfar_private *priv = netdev_priv(dev); | 565 | struct gfar_private *priv = netdev_priv(dev); |
566 | priv->msg_enable = data; | 566 | priv->msg_enable = data; |
567 | } | 567 | } |