From efd8c51b09e8d8b55bded81a4f5389f6d1fc7c07 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Tue, 12 Dec 2006 23:02:43 -0800 Subject: [PATCH] ARM: OMAP: Update omap2 for INIT_WORK, add missing header Update omap2 for INIT_WORK, add missing header Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/clock.c | 1 + arch/arm/plat-omap/gpio-switch.c | 6 +++--- arch/arm/plat-omap/mailbox.c | 7 ++++--- include/asm-arm/arch-omap/gpmc.h | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) Index: linux-omap-upstream/arch/arm/mach-omap2/clock.c =================================================================== --- linux-omap-upstream.orig/arch/arm/mach-omap2/clock.c 2007-02-13 13:05:25.000000000 -0800 +++ linux-omap-upstream/arch/arm/mach-omap2/clock.c 2007-02-13 13:06:04.000000000 -0800 @@ -27,6 +27,7 @@ #include #include +#include #include "prcm-regs.h" #include "memory.h" Index: linux-omap-upstream/arch/arm/plat-omap/mailbox.c =================================================================== --- linux-omap-upstream.orig/arch/arm/plat-omap/mailbox.c 2007-02-13 13:05:25.000000000 -0800 +++ linux-omap-upstream/arch/arm/plat-omap/mailbox.c 2007-02-13 13:06:04.000000000 -0800 @@ -109,9 +109,10 @@ EXPORT_SYMBOL(omap_mbox_msg_send); /* * Message receiver(workqueue) */ -static void mbox_msg_receiver(void *p) +static void mbox_msg_receiver(struct work_struct *work) { - struct omap_mbox *mbox = (struct omap_mbox *)p; + struct omap_mbox *mbox = + container_of(work, struct omap_mbox, msg_receive); struct omap_mbq *mbq = mbox->mbq; mbox_msg_t msg; int was_full; @@ -239,7 +240,7 @@ static int omap_mbox_init(struct omap_mb } spin_lock_init(&mbox->lock); - INIT_WORK(&mbox->msg_receive, mbox_msg_receiver, mbox); + INIT_WORK(&mbox->msg_receive, mbox_msg_receiver); init_waitqueue_head(&mbox->tx_waitq); ret = mbq_init(&mbox->mbq); Index: linux-omap-upstream/include/asm-arm/arch-omap/gpmc.h =================================================================== --- linux-omap-upstream.orig/include/asm-arm/arch-omap/gpmc.h 2007-02-13 13:05:25.000000000 -0800 +++ linux-omap-upstream/include/asm-arm/arch-omap/gpmc.h 2007-02-13 13:06:04.000000000 -0800 @@ -88,7 +88,7 @@ extern int gpmc_cs_calc_divider(int cs, extern int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t); extern int gpmc_cs_request(int cs, unsigned long size, unsigned long *base); extern void gpmc_cs_free(int cs); -extern void gpmc_cs_set_reserved(int cs, int reserved); +extern int gpmc_cs_set_reserved(int cs, int reserved); extern int gpmc_cs_reserved(int cs); #endif