Skip to content
Commit 6add49ff authored by Jacob Siverskog's avatar Jacob Siverskog Committed by Marcel Holtmann
Browse files

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: default avatarJacob Siverskog <jacob@teenage.engineering>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent f61851f6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment