From patchwork Wed Apr 7 16:04:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 91085 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o37G5sBJ005831 for ; Wed, 7 Apr 2010 16:06:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932904Ab0DGQGU (ORCPT ); Wed, 7 Apr 2010 12:06:20 -0400 Received: from smtp.nokia.com ([192.100.122.230]:58631 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932700Ab0DGQGT (ORCPT ); Wed, 7 Apr 2010 12:06:19 -0400 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o37G5wgR005211 for ; Wed, 7 Apr 2010 19:06:17 +0300 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 7 Apr 2010 19:05:16 +0300 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 7 Apr 2010 19:04:59 +0300 Received: from localhost.localdomain (esdhcp04088.research.nokia.com [172.21.40.88]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o37G4YMx015130; Wed, 7 Apr 2010 19:04:55 +0300 From: felipe.balbi@nokia.com To: Linux OMAP Mailing List Cc: Felipe Balbi Subject: [RFC PATCH 15/37] cbus: retu: fix compile breakage on retu-headset Date: Wed, 7 Apr 2010 19:04:06 +0300 Message-Id: <1270656268-7034-16-git-send-email-felipe.balbi@nokia.com> X-Mailer: git-send-email 1.7.0.rc0.33.g7c3932 In-Reply-To: <1270656268-7034-1-git-send-email-felipe.balbi@nokia.com> References: <1270656268-7034-1-git-send-email-felipe.balbi@nokia.com> X-OriginalArrivalTime: 07 Apr 2010 16:04:59.0952 (UTC) FILETIME=[13258B00:01CAD66C] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 07 Apr 2010 16:06:21 +0000 (UTC) diff --git a/drivers/cbus/retu.c b/drivers/cbus/retu.c index 80a2acc..7f7a31b 100644 --- a/drivers/cbus/retu.c +++ b/drivers/cbus/retu.c @@ -83,6 +83,7 @@ int retu_read_reg(unsigned reg) BUG_ON(!retu_initialized); return cbus_read_reg(RETU_ID, reg); } +EXPORT_SYMBOL(retu_read_reg); /** * retu_write_reg - Write a value to a register in Retu @@ -96,6 +97,7 @@ void retu_write_reg(unsigned reg, u16 val) BUG_ON(!retu_initialized); cbus_write_reg(RETU_ID, reg, val); } +EXPORT_SYMBOL(retu_write_reg); void retu_set_clear_reg_bits(unsigned reg, u16 set, u16 clear) { @@ -109,6 +111,7 @@ void retu_set_clear_reg_bits(unsigned reg, u16 set, u16 clear) retu_write_reg(reg, w); spin_unlock_irqrestore(&retu_lock, flags); } +EXPORT_SYMBOL_GPL(retu_set_clear_reg_bits); #define ADC_MAX_CHAN_NUMBER 13 @@ -141,7 +144,7 @@ int retu_read_adc(int channel) return res; } - +EXPORT_SYMBOL(retu_read_adc); static u16 retu_disable_bogus_irqs(u16 mask) { @@ -174,6 +177,7 @@ void retu_disable_irq(int id) retu_write_reg(RETU_REG_IMR, mask); spin_unlock_irqrestore(&retu_lock, flags); } +EXPORT_SYMBOL(retu_disable_irq); /* * Enable given RETU interrupt @@ -194,6 +198,7 @@ void retu_enable_irq(int id) retu_write_reg(RETU_REG_IMR, mask); spin_unlock_irqrestore(&retu_lock, flags); } +EXPORT_SYMBOL(retu_enable_irq); /* * Acknowledge given RETU interrupt @@ -202,6 +207,7 @@ void retu_ack_irq(int id) { retu_write_reg(RETU_REG_IDR, 1 << id); } +EXPORT_SYMBOL(retu_ack_irq); /* * RETU interrupt handler. Only schedules the tasklet. @@ -283,6 +289,7 @@ int retu_request_irq(int id, void *irq_handler, unsigned long arg, char *name) return 0; } +EXPORT_SYMBOL(retu_request_irq); /* * Unregister the handler for a given RETU interrupt source. @@ -305,6 +312,7 @@ void retu_free_irq(int id) retu_disable_irq(id); hnd->func = NULL; } +EXPORT_SYMBOL(retu_free_irq); /** * retu_power_off - Shut down power to system @@ -465,14 +473,6 @@ static void __exit retu_exit(void) wait_for_completion(&device_release); } -EXPORT_SYMBOL(retu_request_irq); -EXPORT_SYMBOL(retu_free_irq); -EXPORT_SYMBOL(retu_enable_irq); -EXPORT_SYMBOL(retu_disable_irq); -EXPORT_SYMBOL(retu_ack_irq); -EXPORT_SYMBOL(retu_read_reg); -EXPORT_SYMBOL(retu_write_reg); - subsys_initcall(retu_init); module_exit(retu_exit);