Skip to contentSkip to conversation

ppc32 compilation fixes for 2.5.68

PATCH New Andres Salomon 1 participant 1 message Apr 21, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc32 compilation fixes for 2.5.68

These patches are mostly simple compilation fixes, needed in order to get 2.5.68 compiling for my ti-book. The kernel boots up fine w/ them (gnome is severely broken, but that's a separate issue).

Also, I've submitted these as bugs #609, 610, and 611 to bugme.osdl.org. I'm not sure how active developers are w/ that BTS, so I'm posting here as well, just in case.

drivers/macintosh/adbhid.c +2 -2
@@ -84,7 +84,7 @@
 
 static void adbhid_probe(void);
 
-static void adbhid_input_keycode(int, int, int);
+static void adbhid_input_keycode(int, int, int, struct pt_regs*);
 static void leds_done(struct adb_request *);
 
 static void init_trackpad(int id);
@@ -140,7 +140,7 @@
 }
 
 static void
-adbhid_input_keycode(int id, int keycode, int repeat, pt_regs *regs)
+adbhid_input_keycode(int id, int keycode, int repeat, struct pt_regs *regs)
 {
 	int up_flag;
 
include/asm-ppc/agp.h +11 -0
diff -urN a/include/asm-ppc/agp.h b/include/asm-ppc/agp.h
@@ -0,0 +1,11 @@
+#ifndef AGP_H
+#define AGP_H 1
+
+/* dummy for now */
+
+#define map_page_into_agp(page) 
+#define unmap_page_from_agp(page) 
+#define flush_agp_mappings() 
+#define flush_agp_cache() mb()
+
+#endif
sound/ppc/keywest.c renamed from linux-2.5.68/sound/ppc/keywest.c +3 -3
@@ -57,20 +57,20 @@
 	if (! keywest_ctx)
 		return -EINVAL;
 
-	if (strncmp(adapter->name, "mac-io", 6))
+	if (strncmp(adapter->dev.name, "mac-io", 6))
 		return 0; /* ignored */
 
 	new_client = kmalloc(sizeof(struct i2c_client), GFP_KERNEL);
 	if (! new_client)
 		return -ENOMEM;
 
+	i2c_set_clientdata(new_client, (void *) keywest_ctx);
 	new_client->addr = keywest_ctx->addr;
-	new_client->data = keywest_ctx;
 	new_client->adapter = adapter;
 	new_client->driver = &keywest_driver;
 	new_client->flags = 0;
 
-	strcpy(new_client->name, keywest_ctx->name);
+	strcpy(i2c_clientname(new_client), keywest_ctx->name);
 
 	new_client->id = keywest_ctx->id++; /* Automatically unique */
 	keywest_ctx->client = new_client;