HACK: btwilink: add minimal device tree support

Add minimal device tree support to the btwilink driver that is used
for binding bluetooth with the ti-st shared transport driver.

Signed-off-by: Eyal Reizer <eyalr@ti.com>
Signed-off-by: Matt Porter <mporter@linaro.org>
[rebased on 3.18-rc4]
This commit is contained in:
Eyal Reizer
2013-05-23 17:15:21 +03:00
committed by John Stultz
parent 00169db5cc
commit 72d3355592
+11
View File
@@ -30,6 +30,7 @@
#include <linux/ti_wilink_st.h>
#include <linux/module.h>
#include <linux/of.h>
/* Bluetooth Driver Version */
#define VERSION "1.0"
@@ -275,6 +276,14 @@ static int ti_st_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
return 0;
}
static const struct of_device_id btwilink_of_match[] = {
{
.compatible = "btwilink",
},
{}
};
MODULE_DEVICE_TABLE(of, btwilink_of_match);
static int bt_ti_probe(struct platform_device *pdev)
{
static struct ti_st *hst;
@@ -338,6 +347,8 @@ static struct platform_driver btwilink_driver = {
.remove = bt_ti_remove,
.driver = {
.name = "btwilink",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(btwilink_of_match),
},
};