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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
diff -uNr codec_engine_2_21/cetools/packages/ti/bios/power/modules/omap3530/lpm/lpm_driver.c codec_engine_2_21_fix/cetools/packages/ti/bios/power/modules/omap3530/lpm/lpm_driver.c
--- codec_engine_2_21/cetools/packages/ti/bios/power/modules/omap3530/lpm/lpm_driver.c 2008-11-05 00:18:39.000000000 +0000
+++ codec_engine_2_21_fix/cetools/packages/ti/bios/power/modules/omap3530/lpm/lpm_driver.c 2009-02-13 00:16:50.000000000 +0000
@@ -225,6 +225,9 @@
.os_wait = lpm_os_wait,
.os_trace = lpm_os_trace,
};
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ char lpm_tempDeviceCreateName[50];
+#endif
TRACE(KERN_ALERT "lpm.ko: + lpm_init\n");
@@ -286,9 +289,16 @@
MKDEV(lpm->inst[i].major, lpm->inst[i].minor),
NULL, "lpm%d", lpm->inst[i].minor);
#else
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ sprintf(lpm_tempDeviceCreateName, "lpm%d", lpm->inst[i].minor);
+ device_create(lpm->lpm_class, NULL,
+ MKDEV(lpm->inst[i].major, lpm->inst[i].minor),
+ NULL, lpm_tempDeviceCreateName);
+#else
device_create(lpm->lpm_class, NULL,
MKDEV(lpm->inst[i].major, lpm->inst[i].minor),
"lpm%d", lpm->inst[i].minor);
+#endif /* LINUX_VERSION */
#endif
}
diff -uNr codec_engine_2_21/cetools/packages/ti/bios/power/modules/omap2530/lpm/lpm_driver.c codec_engine_2_21_fix/cetools/packages/ti/bios/power/modules/omap2530/lpm/lpm_driver.c
--- codec_engine_2_21/cetools/packages/ti/bios/power/modules/omap2530/lpm/lpm_driver.c 2008-11-05 00:18:39.000000000 +0000
+++ codec_engine_2_21_fix/cetools/packages/ti/bios/power/modules/omap2530/lpm/lpm_driver.c 2009-02-13 00:16:50.000000000 +0000
@@ -225,6 +225,9 @@
.os_wait = lpm_os_wait,
.os_trace = lpm_os_trace,
};
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ char lpm_tempDeviceCreateName[50];
+#endif
TRACE(KERN_ALERT "lpm.ko: + lpm_init\n");
@@ -286,9 +289,16 @@
MKDEV(lpm->inst[i].major, lpm->inst[i].minor),
NULL, "lpm%d", lpm->inst[i].minor);
#else
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ sprintf(lpm_tempDeviceCreateName, "lpm%d", lpm->inst[i].minor);
+ device_create(lpm->lpm_class, NULL,
+ MKDEV(lpm->inst[i].major, lpm->inst[i].minor),
+ NULL, lpm_tempDeviceCreateName);
+#else
device_create(lpm->lpm_class, NULL,
MKDEV(lpm->inst[i].major, lpm->inst[i].minor),
"lpm%d", lpm->inst[i].minor);
+#endif /* LINUX_VERSION */
#endif
}
diff -uNr codec_engine_2_21/cetools/packages/ti/bios/power/modules/dm357/lpm/lpm_driver.c codec_engine_2_21_fix/cetools/packages/ti/bios/power/modules/dm357/lpm/lpm_driver.c
--- codec_engine_2_21/cetools/packages/ti/bios/power/modules/dm357/lpm/lpm_driver.c 2008-11-05 00:18:39.000000000 +0000
+++ codec_engine_2_21_fix/cetools/packages/ti/bios/power/modules/dm357/lpm/lpm_driver.c 2009-02-13 00:16:50.000000000 +0000
@@ -225,6 +225,9 @@
.os_wait = lpm_os_wait,
.os_trace = lpm_os_trace,
};
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ char lpm_tempDeviceCreateName[50];
+#endif
TRACE(KERN_ALERT "lpm.ko: + lpm_init\n");
@@ -286,9 +289,16 @@
MKDEV(lpm->inst[i].major, lpm->inst[i].minor),
NULL, "lpm%d", lpm->inst[i].minor);
#else
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ sprintf(lpm_tempDeviceCreateName, "lpm%d", lpm->inst[i].minor);
+ device_create(lpm->lpm_class, NULL,
+ MKDEV(lpm->inst[i].major, lpm->inst[i].minor),
+ NULL, lpm_tempDeviceCreateName);
+#else
device_create(lpm->lpm_class, NULL,
MKDEV(lpm->inst[i].major, lpm->inst[i].minor),
"lpm%d", lpm->inst[i].minor);
+#endif /* LINUX_VERSION */
#endif
}
diff -uNr codec_engine_2_21/cetools/packages/ti/bios/power/modules/dm6446/lpm/lpm_driver.c codec_engine_2_21_fix/cetools/packages/ti/bios/power/modules/dm6446/lpm/lpm_driver.c
--- codec_engine_2_21/cetools/packages/ti/bios/power/modules/dm6446/lpm/lpm_driver.c 2008-11-05 00:18:39.000000000 +0000
+++ codec_engine_2_21_fix/cetools/packages/ti/bios/power/modules/dm6446/lpm/lpm_driver.c 2009-02-13 00:16:50.000000000 +0000
@@ -225,6 +225,9 @@
.os_wait = lpm_os_wait,
.os_trace = lpm_os_trace,
};
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ char lpm_tempDeviceCreateName[50];
+#endif
TRACE(KERN_ALERT "lpm.ko: + lpm_init\n");
@@ -286,9 +289,16 @@
MKDEV(lpm->inst[i].major, lpm->inst[i].minor),
NULL, "lpm%d", lpm->inst[i].minor);
#else
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ sprintf(lpm_tempDeviceCreateName, "lpm%d", lpm->inst[i].minor);
+ device_create(lpm->lpm_class, NULL,
+ MKDEV(lpm->inst[i].major, lpm->inst[i].minor),
+ NULL, lpm_tempDeviceCreateName);
+#else
device_create(lpm->lpm_class, NULL,
MKDEV(lpm->inst[i].major, lpm->inst[i].minor),
"lpm%d", lpm->inst[i].minor);
+#endif /* LINUX_VERSION */
#endif
}
|