[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1249677761-19470-1-git-send-email-u.kleine-koenig@pengutronix.de>
Date: Fri, 7 Aug 2009 22:42:36 +0200
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: LKML <linux-kernel@...r.kernel.org>,
rt-users <linux-rt-users@...r.kernel.org>,
Samuel Ortiz <sameo@...ux.intel.com>,
Russell King <rmk+kernel@....linux.org.uk>,
Kay Sievers <kay.sievers@...y.org>,
Greg Kroah-Hartman <gregkh@...e.de>
Subject: [PATCH 1/6] ucb1x00: include linux/semaphore.h
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 <u.kleine-koenig@...gutronix.de>
Cc: Samuel Ortiz <sameo@...ux.intel.com>
Cc: Russell King <rmk+kernel@....linux.org.uk>
Cc: Kay Sievers <kay.sievers@...y.org>
Cc: Greg Kroah-Hartman <gregkh@...e.de>
Cc: linux-kernel@...r.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists