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
1 From 83e32f317a02df2419bda2b4be614ce31e7bc1e3 Mon Sep 17 00:00:00 2001
2 From: Eyal Reizer <eyalr@ti.com>
3 Date: Thu, 23 May 2013 17:15:21 +0300
4 Subject: [PATCH 6/7] btwilink: add minimal device tree support
6 Add minimal device tree support to the btwilink driver that is used
7 for binding bluetooth with the ti-st shared transport driver.
9 Change-Id: I301c49d29046f20f8868bebb14347e82c12c8140
10 Signed-off-by: Eyal Reizer <eyalr@ti.com>
11 Signed-off-by: bvijay <bvijay@ti.com>
12 ---
13  drivers/bluetooth/btwilink.c |   10 ++++++++++
14  1 file changed, 10 insertions(+)
16 diff --git a/drivers/bluetooth/btwilink.c b/drivers/bluetooth/btwilink.c
17 index 60abf59..12595c9 100644
18 --- a/drivers/bluetooth/btwilink.c
19 +++ b/drivers/bluetooth/btwilink.c
20 @@ -30,6 +30,7 @@
21  
22  #include <linux/ti_wilink_st.h>
23  #include <linux/module.h>
24 +#include <linux/of.h>
25  
26  /* Bluetooth Driver Version */
27  #define VERSION               "1.0"
28 @@ -291,6 +292,14 @@ static int ti_st_send_frame(struct sk_buff *skb)
29         return 0;
30  }
31  
32 +static const struct of_device_id btwilink_of_match[] = {
33 +{
34 +       .compatible = "btwilink",
35 +       },
36 +       {}
37 +};
38 +MODULE_DEVICE_TABLE(of, btwilink_of_match);
39 +
40  static int bt_ti_probe(struct platform_device *pdev)
41  {
42         static struct ti_st *hst;
43 @@ -355,6 +364,7 @@ static struct platform_driver btwilink_driver = {
44         .driver = {
45                 .name = "btwilink",
46                 .owner = THIS_MODULE,
47 +               .of_match_table = of_match_ptr(btwilink_of_match),
48         },
49  };
50  
51 -- 
52 1.7.9.5