From patchwork Tue Sep 14 05:30:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: matt mooney X-Patchwork-Id: 178802 X-Patchwork-Delegate: hiroshi.doyu@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8E5aIra027734 for ; Tue, 14 Sep 2010 05:36:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751852Ab0INFgR (ORCPT ); Tue, 14 Sep 2010 01:36:17 -0400 Received: from qmta15.emeryville.ca.mail.comcast.net ([76.96.27.228]:43806 "EHLO qmta15.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751034Ab0INFgR (ORCPT ); Tue, 14 Sep 2010 01:36:17 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 14 Sep 2010 05:36:19 +0000 (UTC) X-Greylist: delayed 355 seconds by postgrey-1.27 at vger.kernel.org; Tue, 14 Sep 2010 01:36:17 EDT Received: from omta15.emeryville.ca.mail.comcast.net ([76.96.30.71]) by qmta15.emeryville.ca.mail.comcast.net with comcast id 6VRz1f0031Y3wxoAFVWMXl; Tue, 14 Sep 2010 05:30:21 +0000 Received: from haskell.muteddisk.com ([98.239.78.58]) by omta15.emeryville.ca.mail.comcast.net with comcast id 6VWL1f00E1FUwZe8bVWMmZ; Tue, 14 Sep 2010 05:30:21 +0000 Received: by haskell.muteddisk.com (Postfix, from userid 1000) id 14ED2412AB; Mon, 13 Sep 2010 22:30:26 -0700 (PDT) From: matt mooney To: Tony Lindgren Cc: Russell King , Hiroshi DOYU , Suman Anna , Juha Leppanen , Hari Kanigeri , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-janitors@vger.kernel.org Subject: [PATCH 3/4] arm: remove cast from void* Date: Mon, 13 Sep 2010 22:30:16 -0700 Message-Id: <1284442216-11710-1-git-send-email-mfm@muteddisk.com> X-Mailer: git-send-email 1.6.4.2 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index 42dbfa4..40ddeca 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c @@ -181,7 +181,7 @@ static int omap2_mbox_fifo_full(struct omap_mbox *mbox) static void omap2_mbox_enable_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) { - struct omap_mbox2_priv *p = (struct omap_mbox2_priv *)mbox->priv; + struct omap_mbox2_priv *p = mbox->priv; u32 l, bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; l = mbox_read_reg(p->irqenable); @@ -192,7 +192,7 @@ static void omap2_mbox_enable_irq(struct omap_mbox *mbox, static void omap2_mbox_disable_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) { - struct omap_mbox2_priv *p = (struct omap_mbox2_priv *)mbox->priv; + struct omap_mbox2_priv *p = mbox->priv; u32 l, bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; l = mbox_read_reg(p->irqdisable); l &= ~bit; @@ -202,7 +202,7 @@ static void omap2_mbox_disable_irq(struct omap_mbox *mbox, static void omap2_mbox_ack_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) { - struct omap_mbox2_priv *p = (struct omap_mbox2_priv *)mbox->priv; + struct omap_mbox2_priv *p = mbox->priv; u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; mbox_write_reg(bit, p->irqstatus); @@ -214,7 +214,7 @@ static void omap2_mbox_ack_irq(struct omap_mbox *mbox, static int omap2_mbox_is_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) { - struct omap_mbox2_priv *p = (struct omap_mbox2_priv *)mbox->priv; + struct omap_mbox2_priv *p = mbox->priv; u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; u32 enable = mbox_read_reg(p->irqenable); u32 status = mbox_read_reg(p->irqstatus);