From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Subject: Re: [PATCH v3] spi: New driver for Altera SPI Date: Wed, 19 Jan 2011 09:36:13 +0800 Message-ID: <4D36400D.6000202@wytron.com.tw> References: <1295247869-4968-1-git-send-email-thomas@wytron.com.tw> <4D33EF7C.7030005@writeme.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Cc: nios2-dev-1eJk0qcHJCcaeqlQEoCUNoJY59XmG8rH@public.gmane.org, David Brownell , Mike Frysinger , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Sinan Akman Return-path: In-Reply-To: <4D33EF7C.7030005-w0xpxkV3uqlBDgjK7y7TUQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: linux-spi.vger.kernel.org On 01/17/2011 03:27 PM, Sinan Akman wrote: >> + if (hw->irq >= 0) { >> + init_completion(&hw->done); > > I think you init this twice, once in altera_spi_probe > below as well. I will remove this one, too. Thank you again. - Thomas From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753317Ab1ASBeN (ORCPT ); Tue, 18 Jan 2011 20:34:13 -0500 Received: from www.wytron.com.tw ([211.75.82.101]:39146 "EHLO www.wytron.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753240Ab1ASBeM (ORCPT ); Tue, 18 Jan 2011 20:34:12 -0500 Message-ID: <4D36400D.6000202@wytron.com.tw> Date: Wed, 19 Jan 2011 09:36:13 +0800 From: Thomas Chou User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 MIME-Version: 1.0 To: Sinan Akman CC: David Brownell , Grant Likely , nios2-dev@sopc.et.ntust.edu.tw, Mike Frysinger , devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, spi-devel-general@lists.sourceforge.net Subject: Re: [PATCH v3] spi: New driver for Altera SPI References: <1295247869-4968-1-git-send-email-thomas@wytron.com.tw> <4D33EF7C.7030005@writeme.com> In-Reply-To: <4D33EF7C.7030005@writeme.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 192.168.1.15 X-SA-Exim-Mail-From: thomas@wytron.com.tw X-SA-Exim-Scanned: No (on www.wytron.com.tw); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/17/2011 03:27 PM, Sinan Akman wrote: >> + if (hw->irq >= 0) { >> + init_completion(&hw->done); > > I think you init this twice, once in altera_spi_probe > below as well. I will remove this one, too. Thank you again. - Thomas