From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mundt Date: Wed, 09 Feb 2011 07:19:39 +0000 Subject: Re: [PATCH] dma: shdma: add checking the DMAOR_AE in sh_dmae_err Message-Id: <20110209071939.GA16518@linux-sh.org> List-Id: References: <4D523980.2080309@renesas.com> In-Reply-To: <4D523980.2080309@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sh@vger.kernel.org On Wed, Feb 09, 2011 at 03:51:44PM +0900, Yoshihiro Shimoda wrote: > The irq numbers of tranfer end and address error are assigned same number > on some CPU. So the sh_dmae_err() should check the AE flag in DMAOR. > Looks ok, but.. > static irqreturn_t sh_dmae_err(int irq, void *data) > { > - return IRQ_RETVAL(sh_dmae_reset(data)); > + struct sh_dmae_device *shdev = (struct sh_dmae_device *)data; > + Please do not ever cast void pointers, it's completely pointless and just means someone else has to go and tidy up the patch manually.