From patchwork Thu Sep 30 09:40:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 219462 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8U9fEaX023688 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 30 Sep 2010 09:41:36 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1P1FdY-0002k1-Kd; Thu, 30 Sep 2010 09:41:12 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1P1FdX-0002jr-Bn for spi-devel-general@lists.sourceforge.net; Thu, 30 Sep 2010 09:41:11 +0000 X-ACL-Warn: Received: from eu1sys200aog117.obsmtp.com ([207.126.144.143]) by sog-mx-1.v43.ch3.sourceforge.com with smtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1P1FdV-0004OI-IR for spi-devel-general@lists.sourceforge.net; Thu, 30 Sep 2010 09:41:11 +0000 Received: from source ([138.198.100.35]) (using TLSv1) by eu1sys200aob117.postini.com ([207.126.147.11]) with SMTP ID DSNKTKRbKV2iu8vZ2IhdyncDpyxi1PTCLnv+@postini.com; Thu, 30 Sep 2010 09:41:09 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 14BDD128; Thu, 30 Sep 2010 09:40:54 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id C2E63B38; Thu, 30 Sep 2010 09:40:53 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id A3F6F24C07C; Thu, 30 Sep 2010 11:40:47 +0200 (CEST) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.1.393.1; Thu, 30 Sep 2010 11:40:52 +0200 From: Linus Walleij To: Grant Likely , Subject: [PATCH] spi/pl022: make sure the chip_info dev pointer is set Date: Thu, 30 Sep 2010 11:40:48 +0200 Message-ID: <1285839648-7368-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.6.3.3 MIME-Version: 1.0 X-Spam-Score: -0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 AWL AWL: From: address is in the auto white-list X-Headers-End: 1P1FdV-0004OI-IR Cc: Linus Walleij , linux-arm-kernel@lists.infradead.org X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 30 Sep 2010 09:41:36 +0000 (UTC) diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c index 4c37c4e..90a7e5d 100644 --- a/drivers/spi/amba-pl022.c +++ b/drivers/spi/amba-pl022.c @@ -1574,6 +1574,8 @@ static int pl022_setup(struct spi_device *spi) chip_info->duplex = SSP_MICROWIRE_CHANNEL_FULL_DUPLEX; chip_info->cs_control = null_cs_control; } else { + /* Users should not set this field */ + chip_info->dev = &spi->dev; dev_dbg(&spi->dev, "using user supplied controller_data settings\n"); }