From patchwork Mon May 31 14:33:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thomas.koeller@baslerweb.com X-Patchwork-Id: 103289 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4VEZdfL030500 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 31 May 2010 14:36:16 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1OJ65a-0006jL-Rx; Mon, 31 May 2010 14:35:38 +0000 Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1OJ65Z-0006jF-BF for spi-devel-general@lists.sourceforge.net; Mon, 31 May 2010 14:35:37 +0000 X-ACL-Warn: Received: from mail01.baslerweb.com ([80.156.24.166]) by sfi-mx-4.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1OJ65X-0003VP-Ks for spi-devel-general@lists.sourceforge.net; Mon, 31 May 2010 14:35:37 +0000 Received: from unknown (HELO AHR075S.basler.corp) ([172.16.20.75]) by mail01-out.baslerweb.com with ESMTP; 31 May 2010 16:35:08 +0200 Received: from rd-ipcam ([172.16.13.131]) by AHR075S.basler.corp with Microsoft SMTPSVC(6.0.3790.4675); Mon, 31 May 2010 16:35:29 +0200 Received: from localhost.localdomain ([172.16.13.131]) by AHR075S.basler.corp with Microsoft SMTPSVC(6.0.3790.4675); Fri, 30 Apr 2010 13:54:59 +0200 From: thomas.koeller@baslerweb.com To: spi-devel-general@lists.sourceforge.net Date: Mon, 31 May 2010 16:33:34 +0200 Message-Id: <1272628495-13934-1-git-send-email-thomas.koeller@baslerweb.com> X-Mailer: git-send-email 1.7.0.3 In-Reply-To: References: X-OriginalArrivalTime: 30 Apr 2010 11:54:59.0403 (UTC) FILETIME=[F59FA9B0:01CAE85B] X-Length: 2594 X-UID: 115 X-KMail-SignatureActionEnabled: false X-KMail-EncryptActionEnabled: false X-KMail-CryptoMessageFormat: 15 MIME-Version: 1.0 Content-Disposition: inline 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: 1OJ65X-0003VP-Ks Cc: Thomas Koeller Subject: [spi-devel-general] [PATCH] DaVinci SPI: Fix SPI clock prescale factor computation 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 (demeter.kernel.org [140.211.167.41]); Mon, 31 May 2010 14:36:16 +0000 (UTC) diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c index 956f617..5c69d78 100644 --- a/drivers/spi/davinci_spi.c +++ b/drivers/spi/davinci_spi.c @@ -153,7 +153,7 @@ static int davinci_spi_setup_transfer(struct spi_device *spi, struct davinci_spi *davinci_spi; struct davinci_spi_platform_data *pdata; u8 bits_per_word = 0; - u32 hz = 0, prescale; + u32 hz = 0, prescale, clkspeed; davinci_spi = spi_master_get_devdata(spi->master);