Thread (291 messages) 291 messages, 55 authors, 2010-03-01
STALE5951d

[PATCH 1/6] ucb1x00: include linux/semaphore.h

From: Uwe Kleine-König <hidden>
Date: 2009-08-07 20:42:56
Also in: lkml
Subsystem: multifunction devices (mfd), the rest · Maintainers: Lee Jones, Linus Torvalds

This fixes the following error:

	  CC      drivers/mfd/ucb1x00-core.o
	drivers/mfd/ucb1x00-core.c: In function 'ucb1x00_adc_enable':
	drivers/mfd/ucb1x00-core.c:138: error: implicit declaration of function 'down'
	drivers/mfd/ucb1x00-core.c: In function 'ucb1x00_adc_disable':
	drivers/mfd/ucb1x00-core.c:196: error: implicit declaration of function 'up'
	drivers/mfd/ucb1x00-core.c: In function 'ucb1x00_probe':
	drivers/mfd/ucb1x00-core.c:500: error: implicit declaration of function 'sema_init'

Signed-off-by: Uwe Kleine-König <redacted>
Cc: Samuel Ortiz <redacted>
Cc: Russell King <redacted>
Cc: Kay Sievers <redacted>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: linux-kernel@vger.kernel.org
---
Hello,

should this better be converted to mutex_lock/mutex_unlock?

Best regards
Uwe
---
 drivers/mfd/ucb1x00-core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mfd/ucb1x00-core.c b/drivers/mfd/ucb1x00-core.c
index fea9085..3c59c26 100644
--- a/drivers/mfd/ucb1x00-core.c
+++ b/drivers/mfd/ucb1x00-core.c
@@ -24,6 +24,7 @@
 #include <linux/interrupt.h>
 #include <linux/device.h>
 #include <linux/mutex.h>
+#include <linux/semaphore.h>
 
 #include <mach/dma.h>
 #include <mach/hardware.h>
-- 
1.6.3.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help