rt2x00: avoid introducing a USB dependency in the rt2x00lib module
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 2 Feb 2017 09:57:40 +0000 (10:57 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 7 Feb 2017 07:57:48 +0000 (09:57 +0200)
commit6232c17438ed01f43665197db5a98a4a4f77ef47
tree535b5c26796a21c02aa37e28f54275758a51bb10
parent0f83ff69735651cc7a3d150466a5257ff829b62b
rt2x00: avoid introducing a USB dependency in the rt2x00lib module

As reported by Felix:

Though protected by an ifdef, introducing an usb symbol dependency in
the rt2x00lib module is a major inconvenience for distributions that
package kernel modules split into individual packages.

Get rid of this unnecessary dependency by calling the usb related
function from a more suitable place.

Cc: Vishal Thanki <vishalthanki@gmail.com>
Reported-by: Felix Fietkau <nbd@nbd.name>
Fixes: 8b4c0009313f ("rt2x00usb: Use usb anchor to manage URB")
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
drivers/net/wireless/ralink/rt2x00/rt2x00usb.c