diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-11-02 14:13:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-02 14:33:12 +0300 |
commit | 9691cea91c9d35f09d6b31a5e8dbfc631d40903a (patch) | |
tree | faf95d67ca89a07313dbe3fe7df5e831c345f497 /drivers/net/ethernet/seeq/ether3.c | |
parent | b35be415499ad257954813f8def9c84f49f1ff34 (diff) | |
download | linux-9691cea91c9d35f09d6b31a5e8dbfc631d40903a.tar.xz |
net: seeq: fix timer conversion
One of the timer conversion patches evidently escaped build testing
until I ran into in on ARM randconfig builds:
drivers/net/ethernet/seeq/ether3.c: In function 'ether3_ledoff':
drivers/net/ethernet/seeq/ether3.c:175:40: error: 'priv' undeclared (first use in this function); did you mean 'pid'?
drivers/net/ethernet/seeq/ether3.c:176:27: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
This fixes the two small typos that caused the problems.
Fixes: 6fd9c53f7186 ("net: seeq: Convert timers to use timer_setup()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/seeq/ether3.c')
-rw-r--r-- | drivers/net/ethernet/seeq/ether3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/seeq/ether3.c b/drivers/net/ethernet/seeq/ether3.c index da4807723a06..c5bc124b41a9 100644 --- a/drivers/net/ethernet/seeq/ether3.c +++ b/drivers/net/ethernet/seeq/ether3.c @@ -172,7 +172,7 @@ ether3_setbuffer(struct net_device *dev, buffer_rw_t read, int start) */ static void ether3_ledoff(struct timer_list *t) { - struct dev_priv *private = from_timer(priv, t, timer); + struct dev_priv *private = from_timer(private, t, timer); struct net_device *dev = private->dev; ether3_outw(priv(dev)->regs.config2 |= CFG2_CTRLO, REG_CONFIG2); |