bcma: use (get|put)_device when probing/removing device driver
authorRafał Miłecki <rafal@milecki.pl>
Sat, 28 Jan 2017 13:31:22 +0000 (14:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:37:30 +0000 (06:37 +0100)
commit79a7ff1443bd85c02786732080dff8d0696a0d11
tree695fb236e67b9a4b7cc9c9bc15b282f0cfc722f6
parent5a1f03f1ee9170f99760d7abcb68754f551b3187
bcma: use (get|put)_device when probing/removing device driver

commit a971df0b9d04674e325346c17de9a895425ca5e1 upstream.

This allows tracking device state and e.g. makes devm work as expected.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bcma/main.c