rt2x00: use ratelimited variants dev_warn/dev_err
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 12 Mar 2019 09:51:41 +0000 (10:51 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 25 Apr 2019 16:40:52 +0000 (19:40 +0300)
commitbb3b18c925333695261ccaad84c0edc100a4d9e2
tree2aaac9e203ed8741d4066185283f80e85e67a55b
parent0ed2a005347400500a39ea7c7318f1fea57fb3ca
rt2x00: use ratelimited variants dev_warn/dev_err

As reported by Randy we can overwhelm logs on some USB error conditions.
To avoid that use dev_warn_ratelimited() and dev_err_ratelimitd().

Reported-and-tested-by: Randy Oostdyk <linux-kernel@oostdyk.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2x00.h