rt2x00: initialize last_reset
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 26 Sep 2019 08:54:33 +0000 (10:54 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Oct 2019 04:36:52 +0000 (07:36 +0300)
commitc91a9cfe9f6d136172a52ff6e01b3f83ba850c19
tree53f624b955770fca11503d1409c4e2b35cbc159c
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
rt2x00: initialize last_reset

Initialize last_reset variable to INITIAL_JIFFIES, otherwise it is not
possible to test H/W reset for first 5 minutes of system run.

Fixes: e403fa31ed71 ("rt2x00: add restart hw")
Reported-and-tested-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2x00debug.c