diff options
author | Johan Hovold <johan@kernel.org> | 2017-03-30 10:15:39 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-27 22:07:56 (GMT) |
commit | 06be8e2767da8d2ffeaf490e05cda274935f7f89 (patch) | |
tree | 516b039dae7682d6cde8db58102060ac705d27bb /net/ipv4 | |
parent | 10f03f0f7ef0ee456369b2940e092e0225c754a6 (diff) | |
download | linux-06be8e2767da8d2ffeaf490e05cda274935f7f89.tar.xz |
NFC: nfcmrvl: fix firmware-management initialisation
commit 45dd39b974f6632222dd5cdcbea7358a077ab0b0 upstream.
The nci-device was never deregistered in the event that
fw-initialisation failed.
Fix this by moving the firmware initialisation before device
registration since the firmware work queue should be available before
registering.
Note that this depends on a recent fix that moved device-name
initialisation back to to nci_allocate_device() as the
firmware-workqueue name is now derived from the nfc-device name.
Fixes: 3194c6870158 ("NFC: nfcmrvl: add firmware download support")
Cc: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions