watchdog: bcm281xx: Fix use of uninitialized spinlock.
authorEric Anholt <eric@anholt.net>
Fri, 28 Apr 2017 01:02:32 +0000 (18:02 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 19 May 2017 08:42:25 +0000 (10:42 +0200)
commit3a7711e5673c879e60f111ad47682913db98db78
treec3900d461bcceb71ba22ce130e31dbe7e4001c84
parent2fa2949dcee3b14b15e38b35f972c14e0f6c4fb7
watchdog: bcm281xx: Fix use of uninitialized spinlock.

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: e7b9c893aca3 ("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>
drivers/watchdog/bcm_kona_wdt.c