lantiq: Fix typo in LED diag script.
[openwrt/staging/chunkeey.git] / target / linux / mediatek / patches-4.4 / 0065-net-mediatek-watchdog_timeo-was-not-set.patch
1 From 103d950e6201ab54a8b64402bb0b32a35831b028 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Wed, 30 Mar 2016 03:18:17 +0200
4 Subject: [PATCH 65/81] net: mediatek: watchdog_timeo was not set
5
6 The original commit failed to set watchdog_timeo. This patch sets
7 watchdog_timeo to HZ.
8
9 Signed-off-by: John Crispin <blogic@openwrt.org>
10 ---
11 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 +
12 1 file changed, 1 insertion(+)
13
14 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
15 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
16 @@ -1645,6 +1645,7 @@ static int mtk_add_mac(struct mtk_eth *e
17 mac->hw_stats->reg_offset = id * MTK_STAT_OFFSET;
18
19 SET_NETDEV_DEV(eth->netdev[id], eth->dev);
20 + eth->netdev[id]->watchdog_timeo = HZ;
21 eth->netdev[id]->netdev_ops = &mtk_netdev_ops;
22 eth->netdev[id]->base_addr = (unsigned long)eth->base;
23 eth->netdev[id]->vlan_features = MTK_HW_FEATURES &