diff options
author | Tristram Ha <Tristram.Ha@microchip.com> | 2018-11-03 03:23:41 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-03 07:56:34 +0100 |
commit | 284fb78ed7572117846f8e1d1d8e3dbfd16880c2 (patch) | |
tree | f4b7e53eec33c7b85d5cc895ce8750b1ef02e983 /include | |
parent | net/ipv6: Add anycast addresses to a global hashtable (diff) | |
download | linux-284fb78ed7572117846f8e1d1d8e3dbfd16880c2.tar.xz linux-284fb78ed7572117846f8e1d1d8e3dbfd16880c2.zip |
net: dsa: microchip: initialize mutex before use
Initialize mutex before use. Avoid kernel complaint when
CONFIG_DEBUG_LOCK_ALLOC is enabled.
Fixes: b987e98e50ab90e5 ("dsa: add DSA switch driver for Microchip KSZ9477")
Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions