提交 6add49ff 编写于 作者: J Jacob Siverskog 提交者: Marcel Holtmann

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: NJacob Siverskog <jacob@teenage.engineering>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 f61851f6
......@@ -310,7 +310,7 @@ static int bt_ti_probe(struct platform_device *pdev)
BT_DBG("HCI device registered (hdev %p)", hdev);
dev_set_drvdata(&pdev->dev, hst);
return err;
return 0;
}
static int bt_ti_remove(struct platform_device *pdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册