Bluetooth: btwilink: Fix probe return value
authorJacob Siverskog <jacob@teenage.engineering>
Thu, 20 Oct 2016 07:05:09 +0000 (09:05 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 20 Oct 2016 08:14:49 +0000 (10:14 +0200)
commit6add49fff9233a5c43011eb42b521257cbaa9bda
treec93605f6309063bbb3218ed28d842c660f014f2f
parentf61851f64b171a684f5a1fa78325756dbbaadadc
Bluetooth: btwilink: Fix probe return value

Probe functions should return 0 on success. This driver's probe
returns the value returned by hci_register_dev(), which is the hci
index. This works for systems with only one hci device (id = 0) but
for systems where the btwilink device ends up with an id larger than
0, things will start to fall apart.

Make the probe function return 0 on success.

Signed-off-by: Jacob Siverskog <jacob@teenage.engineering>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btwilink.c