]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - wilink8-wlan/build-utilites.git/blobdiff - patches/kernel_patches/imx-3.10.53/0006-btwilink-add-minimal-device-tree-support.patch
build_wl18xx: add patch mechanism and bluetooth components
[wilink8-wlan/build-utilites.git] / patches / kernel_patches / imx-3.10.53 / 0006-btwilink-add-minimal-device-tree-support.patch
diff --git a/patches/kernel_patches/imx-3.10.53/0006-btwilink-add-minimal-device-tree-support.patch b/patches/kernel_patches/imx-3.10.53/0006-btwilink-add-minimal-device-tree-support.patch
new file mode 100644 (file)
index 0000000..845d89a
--- /dev/null
@@ -0,0 +1,53 @@
+From 83e32f317a02df2419bda2b4be614ce31e7bc1e3 Mon Sep 17 00:00:00 2001
+From: Eyal Reizer <eyalr@ti.com>
+Date: Thu, 23 May 2013 17:15:21 +0300
+Subject: [PATCH 6/7] 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.
+
+Change-Id: I301c49d29046f20f8868bebb14347e82c12c8140
+Signed-off-by: Eyal Reizer <eyalr@ti.com>
+Signed-off-by: bvijay <bvijay@ti.com>
+---
+ drivers/bluetooth/btwilink.c |   10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/drivers/bluetooth/btwilink.c b/drivers/bluetooth/btwilink.c
+index 60abf59..12595c9 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"
+@@ -291,6 +292,14 @@ static int ti_st_send_frame(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;
+@@ -355,6 +364,7 @@ static struct platform_driver btwilink_driver = {
+       .driver = {
+               .name = "btwilink",
+               .owner = THIS_MODULE,
++              .of_match_table = of_match_ptr(btwilink_of_match),
+       },
+ };
+-- 
+1.7.9.5
+