summaryrefslogtreecommitdiffstats
path: root/target/linux/omap24xx/patches-3.1/410-hci-h4p-fixes.patch
blob: 651cafe3ae4a69156ac34982e18349d81b92afac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Index: linux-3.1/drivers/bluetooth/hci_h4p/core.c
===================================================================
--- linux-3.1.orig/drivers/bluetooth/hci_h4p/core.c	2011-10-30 00:48:52.285041210 +0200
+++ linux-3.1/drivers/bluetooth/hci_h4p/core.c	2011-10-30 00:48:53.101040400 +0200
@@ -36,9 +36,9 @@
 #include <linux/clk.h>
 #include <linux/gpio.h>
 
-#include <mach/hardware.h>
-#include <mach/board.h>
-#include <mach/irqs.h>
+#include <plat/hardware.h>
+#include <plat/board.h>
+#include <plat/irqs.h>
 #include <plat/serial.h>
 
 #include <net/bluetooth/bluetooth.h>
Index: linux-3.1/drivers/bluetooth/hci_h4p/hci_h4p.h
===================================================================
--- linux-3.1.orig/drivers/bluetooth/hci_h4p/hci_h4p.h	2011-10-30 00:48:52.285041210 +0200
+++ linux-3.1/drivers/bluetooth/hci_h4p/hci_h4p.h	2011-10-30 00:48:53.101040400 +0200
@@ -21,7 +21,7 @@
  *
  */
 
-#include <mach/board.h>
+#include <plat/board.h>
 
 #include <net/bluetooth/bluetooth.h>
 #include <net/bluetooth/hci_core.h>
Index: linux-3.1/drivers/bluetooth/hci_h4p/sysfs.c
===================================================================
--- linux-3.1.orig/drivers/bluetooth/hci_h4p/sysfs.c	2011-10-30 00:48:52.285041210 +0200
+++ linux-3.1/drivers/bluetooth/hci_h4p/sysfs.c	2011-10-30 00:48:53.101040400 +0200
@@ -48,15 +48,8 @@ static ssize_t hci_h4p_store_bdaddr(stru
 		return -EINVAL;
 	}
 
-	//for (i = 0; i < 6; i++)
-		//info->bdaddr[i] = bdaddr[i] & 0xff;
-
-	info->bdaddr[0] = 0x00;
-	info->bdaddr[1] = 0x1D;
-	info->bdaddr[2] = 0x6E;
-	info->bdaddr[3] = 0xD4;
-	info->bdaddr[4] = 0xF0;
-	info->bdaddr[5] = 0x37;
+	for (i = 0; i < 6; i++)
+		info->bdaddr[i] = bdaddr[i] & 0xff;
 
 	return count;
 }