diff options
Diffstat (limited to 'drivers/net/gianfar_sysfs.c')
-rw-r--r-- | drivers/net/gianfar_sysfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/gianfar_sysfs.c b/drivers/net/gianfar_sysfs.c index 4b726f61314e..3724835d2856 100644 --- a/drivers/net/gianfar_sysfs.c +++ b/drivers/net/gianfar_sysfs.c | |||
@@ -50,7 +50,7 @@ static ssize_t gfar_set_bd_stash(struct device *dev, | |||
50 | const char *buf, size_t count) | 50 | const char *buf, size_t count) |
51 | { | 51 | { |
52 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); | 52 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); |
53 | struct gfar __iomem *regs = priv->gfargrp.regs; | 53 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
54 | int new_setting = 0; | 54 | int new_setting = 0; |
55 | u32 temp; | 55 | u32 temp; |
56 | unsigned long flags; | 56 | unsigned long flags; |
@@ -105,7 +105,7 @@ static ssize_t gfar_set_rx_stash_size(struct device *dev, | |||
105 | const char *buf, size_t count) | 105 | const char *buf, size_t count) |
106 | { | 106 | { |
107 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); | 107 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); |
108 | struct gfar __iomem *regs = priv->gfargrp.regs; | 108 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
109 | unsigned int length = simple_strtoul(buf, NULL, 0); | 109 | unsigned int length = simple_strtoul(buf, NULL, 0); |
110 | u32 temp; | 110 | u32 temp; |
111 | unsigned long flags; | 111 | unsigned long flags; |
@@ -164,7 +164,7 @@ static ssize_t gfar_set_rx_stash_index(struct device *dev, | |||
164 | const char *buf, size_t count) | 164 | const char *buf, size_t count) |
165 | { | 165 | { |
166 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); | 166 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); |
167 | struct gfar __iomem *regs = priv->gfargrp.regs; | 167 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
168 | unsigned short index = simple_strtoul(buf, NULL, 0); | 168 | unsigned short index = simple_strtoul(buf, NULL, 0); |
169 | u32 temp; | 169 | u32 temp; |
170 | unsigned long flags; | 170 | unsigned long flags; |
@@ -212,7 +212,7 @@ static ssize_t gfar_set_fifo_threshold(struct device *dev, | |||
212 | const char *buf, size_t count) | 212 | const char *buf, size_t count) |
213 | { | 213 | { |
214 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); | 214 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); |
215 | struct gfar __iomem *regs = priv->gfargrp.regs; | 215 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
216 | unsigned int length = simple_strtoul(buf, NULL, 0); | 216 | unsigned int length = simple_strtoul(buf, NULL, 0); |
217 | u32 temp; | 217 | u32 temp; |
218 | unsigned long flags; | 218 | unsigned long flags; |
@@ -252,7 +252,7 @@ static ssize_t gfar_set_fifo_starve(struct device *dev, | |||
252 | const char *buf, size_t count) | 252 | const char *buf, size_t count) |
253 | { | 253 | { |
254 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); | 254 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); |
255 | struct gfar __iomem *regs = priv->gfargrp.regs; | 255 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
256 | unsigned int num = simple_strtoul(buf, NULL, 0); | 256 | unsigned int num = simple_strtoul(buf, NULL, 0); |
257 | u32 temp; | 257 | u32 temp; |
258 | unsigned long flags; | 258 | unsigned long flags; |
@@ -293,7 +293,7 @@ static ssize_t gfar_set_fifo_starve_off(struct device *dev, | |||
293 | const char *buf, size_t count) | 293 | const char *buf, size_t count) |
294 | { | 294 | { |
295 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); | 295 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); |
296 | struct gfar __iomem *regs = priv->gfargrp.regs; | 296 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
297 | unsigned int num = simple_strtoul(buf, NULL, 0); | 297 | unsigned int num = simple_strtoul(buf, NULL, 0); |
298 | u32 temp; | 298 | u32 temp; |
299 | unsigned long flags; | 299 | unsigned long flags; |