From patchwork Mon Jul 11 11:17:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 964162 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6BBJMsC020513 for ; Mon, 11 Jul 2011 11:19:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755229Ab1GKLTV (ORCPT ); Mon, 11 Jul 2011 07:19:21 -0400 Received: from na3sys009aog116.obsmtp.com ([74.125.149.240]:58220 "EHLO na3sys009aog116.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754477Ab1GKLTU (ORCPT ); Mon, 11 Jul 2011 07:19:20 -0400 Received: from mail-gx0-f181.google.com ([209.85.161.181]) (using TLSv1) by na3sys009aob116.postini.com ([74.125.148.12]) with SMTP ID DSNKThrcOMxx9O3ezyGEQoAWvHmyamDxmeZU@postini.com; Mon, 11 Jul 2011 04:19:20 PDT Received: by mail-gx0-f181.google.com with SMTP id 9so1684765gxk.12 for ; Mon, 11 Jul 2011 04:19:20 -0700 (PDT) Received: by 10.91.134.7 with SMTP id l7mr3882328agn.166.1310383159960; Mon, 11 Jul 2011 04:19:19 -0700 (PDT) Received: from localhost (dragon.ti.com [192.94.94.33]) by mx.google.com with ESMTPS id y15sm12308604ann.44.2011.07.11.04.19.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jul 2011 04:19:19 -0700 (PDT) From: Felipe Balbi To: Tony Lindgren Cc: Linux OMAP Mailing List , =?UTF-8?q?Michael=20B=C3=BCsch?= , Felipe Balbi Subject: [PATCH 19/22] cbus: tahvo: drop more unused interfaces Date: Mon, 11 Jul 2011 14:17:32 +0300 Message-Id: <1310383055-20211-20-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.6 In-Reply-To: <1310383055-20211-1-git-send-email-balbi@ti.com> References: <1310383055-20211-1-git-send-email-balbi@ti.com> Organization: Texas Instruments\n 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.6 (demeter1.kernel.org [140.211.167.41]); Mon, 11 Jul 2011 11:19:22 +0000 (UTC) we have the IRQ chip which is the standard way of handling IRQs. Signed-off-by: Felipe Balbi --- drivers/cbus/tahvo.c | 34 ---------------------------------- 1 files changed, 0 insertions(+), 34 deletions(-) diff --git a/drivers/cbus/tahvo.c b/drivers/cbus/tahvo.c index 2597672..8192a24 100644 --- a/drivers/cbus/tahvo.c +++ b/drivers/cbus/tahvo.c @@ -129,40 +129,6 @@ void tahvo_set_clear_reg_bits(unsigned reg, u16 set, u16 clear) mutex_unlock(&tahvo->mutex); } -void tahvo_disable_irq(int id) -{ - struct tahvo *tahvo = the_tahvo; - u16 mask; - - mutex_lock(&tahvo->mutex); - mask = __tahvo_read_reg(tahvo, TAHVO_REG_IMR); - mask |= 1 << id; - __tahvo_write_reg(tahvo, TAHVO_REG_IMR, mask); - mutex_unlock(&tahvo->mutex); -} -EXPORT_SYMBOL(tahvo_disable_irq); - -void tahvo_enable_irq(int id) -{ - struct tahvo *tahvo = the_tahvo; - u16 mask; - - mutex_lock(&tahvo->mutex); - mask = __tahvo_read_reg(tahvo, TAHVO_REG_IMR); - mask &= ~(1 << id); - __tahvo_write_reg(tahvo, TAHVO_REG_IMR, mask); - mutex_unlock(&tahvo->mutex); -} -EXPORT_SYMBOL(tahvo_enable_irq); - -void tahvo_ack_irq(int id) -{ - struct tahvo *tahvo = the_tahvo; - - __tahvo_write_reg(tahvo, TAHVO_REG_IDR, 1 << id); -} -EXPORT_SYMBOL(tahvo_ack_irq); - int tahvo_get_backlight_level(void) { struct tahvo *tahvo = the_tahvo;