ppc32 compilation fixes for 2.5.68

ppc32 compilation fixes for 2.5.68

Post by Andres Salomo » Tue, 22 Apr 2003 10:30:10



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.

--- a/drivers/macintosh/adbhid.c        2003-04-19 22:51:22.000000000 -0400

 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
-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;

diff -urN a/include/asm-ppc/agp.h b/include/asm-ppc/agp.h
--- a/include/asm-ppc/agp.h     1969-12-31 19:00:00.000000000 -0500

+#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
--- tmp/linux-2.5.68/sound/ppc/keywest.c        2003-04-19 22:51:12.000000000 -0400

        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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/