Fwd: [PATCH]: Workqueue changes for board-h3

Ragner N Magalhães
2006-12-28T13:31:55Z

---------- Forwarded message ----------
From: Felipe Balbi <felipe.lima@indt.org.br>
Date: Dec 28, 2006 9:28 AM
Subject: [PATCH]: Workqueue changes for board-h3
To: ragner.magalhaes@gmail.com

Hello all,

This patch fixes an error regarding workqueue changes on board-h3 file.]

=================== CUT HERE ==========================
Fixes a compile issue when using CONFIG_MACH_OMAP_H3 regarding workqueues.

Signed-off-by: Felipe Balbi <felipe.lima@indt.org.br>
---

Index: linux-omap-2.6-dev/arch/arm/mach-omap1/board-h3.c
===================================================================
--- linux-omap-2.6-dev.orig/arch/arm/mach-omap1/board-h3.c
+++ linux-omap-2.6-dev/arch/arm/mach-omap1/board-h3.c
@@ -298,5 +298,5 @@ static int h3_select_irda(struct device

-static void set_trans_mode(void *data)
+static void set_trans_mode(struct work_struct *data)
{
- int *mode = data;
+ int *mode = (int *)data;
unsigned char expa;
@@ -321,3 +321,3 @@ static void set_trans_mode(void *data)

-static int h3_transceiver_mode(struct device *dev, int
mode)
+static int h3_transceiver_mode(struct device *dev)
{
@@ -326,4 +326,3 @@ static int h3_transceiver_mode(struct de
cancel_delayed_work(&irda_config->gpio_expa);
- PREPARE_WORK(&irda_config->gpio_expa, set_trans_mode, &mode);
-#error this is not permitted - mode is an argument variable
+ PREPARE_WORK(&(irda_config->gpio_expa.work), set_trans_mode);
schedule_delayed_work(&irda_config->gpio_expa, 0);
Index: linux-omap-2.6-dev/include/asm-arm/arch-omap/irda.h
===================================================================
--- linux-omap-2.6-dev.orig/include/asm-arm/arch-omap/irda.h
+++ linux-omap-2.6-dev/include/asm-arm/arch-omap/irda.h
@@ -21,3 +21,3 @@ struct omap_irda_config {
int transceiver_cap;
- int (*transceiver_mode)(struct device *dev, int mode);
+ int (*transceiver_mode)(struct device *dev);
int (*select_irda)(struct device *dev, int state);

Best Regards,

Felipe Balbi
felipe.lima@indt.org.br

Nokia Institute of Technology - INdT
Kernel Developers Team

+55 92 8127 0839