]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
watchdog: bcm281xx: Fix use of uninitialized spinlock.
authorEric Anholt <eric@anholt.net>
Fri, 28 Apr 2017 01:02:32 +0000 (18:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jul 2017 12:35:14 +0000 (14:35 +0200)
commit6ca017cba6611c6278359eafd034cef9a4cd8f08
tree0338be3c408b7d54aad58a04ec74a99bb7449bcc
parent3c0454ccee160d82c18783b5918cc8dcf79dca01
watchdog: bcm281xx: Fix use of uninitialized spinlock.

commit fedf266f9955d9a019643cde199a2fd9a0259f6f upstream.

The bcm_kona_wdt_set_resolution_reg() call takes the spinlock, so
initialize it earlier.  Fixes a warning at boot with lock debugging
enabled.

Fixes: 6adb730dc208 ("watchdog: bcm281xx: Watchdog Driver")
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/watchdog/bcm_kona_wdt.c