aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEyal Reizer <eyalr@ti.com>2013-05-23 17:15:21 +0300
committerFei Wang <w.f@huawei.com>2015-02-06 12:57:44 +0800
commit9cc9f9c66f5574616c42d2d2ccd4a39ee76215d0 (patch)
tree43fce818419e786e0686a1f8c3734aa4e04cd580
parent7e44d063a662f4c9caf4447cc2e3f8f10ce19c67 (diff)
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]
-rw-r--r--drivers/bluetooth/btwilink.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/bluetooth/btwilink.c b/drivers/bluetooth/btwilink.c
index f038dba19e36..487f712267b5 100644
--- a/drivers/bluetooth/btwilink.c
+++ b/drivers/bluetooth/btwilink.c
@@ -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"
@@ -286,6 +287,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;
@@ -350,6 +359,7 @@ static struct platform_driver btwilink_driver = {
.driver = {
.name = "btwilink",
.owner = THIS_MODULE,
+ .of_match_table = of_match_ptr(btwilink_of_match),
},
};