From patchwork Mon Dec 7 14:28:43 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 65531 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB7EltUQ004676 for ; Mon, 7 Dec 2009 14:47:55 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NHesS-0004yk-K8; Mon, 07 Dec 2009 14:47:52 +0000 Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.123] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NHesR-0004yf-Lw for spi-devel-general@lists.sourceforge.net; Mon, 07 Dec 2009 14:47:51 +0000 X-ACL-Warn: Received: from zmc.proxad.net ([212.27.53.206]) by sfi-mx-3.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NHesK-0007bD-1G for spi-devel-general@lists.sourceforge.net; Mon, 07 Dec 2009 14:47:51 +0000 Received: from localhost (localhost [127.0.0.1]) by zmc.proxad.net (Postfix) with ESMTP id 8A15C341834F; Mon, 7 Dec 2009 15:28:47 +0100 (CET) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -3.985 X-Spam-Level: X-Spam-Status: No, score=-3.985 tagged_above=-10 required=2.8 tests=[ALL_TRUSTED=-1.8, AWL=0.414, BAYES_00=-2.599] autolearn=ham Received: from zmc.proxad.net ([127.0.0.1]) by localhost (zmc.proxad.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 51zX4g7+2pMH; Mon, 7 Dec 2009 15:28:47 +0100 (CET) Received: from flexo.localnet (bobafett.staff.proxad.net [213.228.1.121]) by zmc.proxad.net (Postfix) with ESMTPSA id E7F633418355; Mon, 7 Dec 2009 15:28:46 +0100 (CET) From: Florian Fainelli To: grant.likely@secretlab.ca, spi-devel-general@lists.sourceforge.net, akpm@linux-foundation.org Date: Mon, 7 Dec 2009 15:28:43 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.31-16-server; KDE/4.3.2; x86_64; ; ) Organization: Freebox MIME-Version: 1.0 Message-Id: <200912071528.44001.ffainelli@freebox.fr> X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. _SUMMARY_ X-Headers-End: 1NHesK-0007bD-1G Subject: [spi-devel-general] [PATCH] fix spidev compilation failure when VERBOSE is defined 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 diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 5d869c4..c80c31b 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -262,15 +262,15 @@ static int spidev_message(struct spidev_data *spidev, k_tmp->delay_usecs = u_tmp->delay_usecs; k_tmp->speed_hz = u_tmp->speed_hz; #ifdef VERBOSE - dev_dbg(&spi->dev, + dev_dbg(&spidev->spi->dev, " xfer len %zd %s%s%s%dbits %u usec %uHz\n", u_tmp->len, u_tmp->rx_buf ? "rx " : "", u_tmp->tx_buf ? "tx " : "", u_tmp->cs_change ? "cs " : "", - u_tmp->bits_per_word ? : spi->bits_per_word, + u_tmp->bits_per_word ? : spidev->spi->bits_per_word, u_tmp->delay_usecs, - u_tmp->speed_hz ? : spi->max_speed_hz); + u_tmp->speed_hz ? : spidev->spi->max_speed_hz); #endif spi_message_add_tail(k_tmp, &msg); }