r3835 - branches/src/target/kernel/2.6.24.x/patches

werner at sita.openmoko.org werner at sita.openmoko.org
Tue Jan 15 10:03:26 CET 2008


Author: werner
Date: 2008-01-15 10:03:23 +0100 (Tue, 15 Jan 2008)
New Revision: 3835

Modified:
   branches/src/target/kernel/2.6.24.x/patches/smedia-glamo.patch
Log:
Applied "glamo-core-comment-unused-vars.patch",
http://git.openmoko.org/?p=kernel.git;a=commit;h=841192953ef0052e375c48936612fd0591587aed

Just kill genuine compile warnings about unused vars by commenting since they
look like they may be used for something eventually

Signed-off-by: Andy Green <andy at openmoko.com>

smedia-glamo.patch:
- drivers/mfd/glamo/glamo-core.c (detect_memsize): comment out "pattern"
- drivers/mfd/glamo/glamo-core.c (glamo_supported): comment out "memsize"



Modified: branches/src/target/kernel/2.6.24.x/patches/smedia-glamo.patch
===================================================================
--- branches/src/target/kernel/2.6.24.x/patches/smedia-glamo.patch	2008-01-15 08:02:01 UTC (rev 3834)
+++ branches/src/target/kernel/2.6.24.x/patches/smedia-glamo.patch	2008-01-15 09:03:23 UTC (rev 3835)
@@ -1287,12 +1287,12 @@
 +{
 +	int i;
 +
-+	static const u_int16_t pattern[] = {
++	/*static const u_int16_t pattern[] = {
 +		0x1111, 0x8a8a, 0x2222, 0x7a7a,
 +		0x3333, 0x6a6a, 0x4444, 0x5a5a,
 +		0x5555, 0x4a4a, 0x6666, 0x3a3a,
 +		0x7777, 0x2a2a, 0x8888, 0x1a1a
-+	};
++	}; */
 +
 +	for (i = 0; i < MEMDETECT_RETRY; i++) {
 +		switch (glamo->type) {
@@ -1347,7 +1347,7 @@
 +/* Find out if we can support this version of the Glamo chip */
 +static int glamo_supported(struct glamo_core *glamo)
 +{
-+	u_int16_t dev_id, rev_id, memsize;
++	u_int16_t dev_id, rev_id; /*, memsize; */
 +
 +	dev_id = __reg_read(glamo, GLAMO_REG_DEVICE_ID);
 +	rev_id = __reg_read(glamo, GLAMO_REG_REVISION_ID);





More information about the commitlog mailing list