DaVinci SPI: Fix SPI clock prescale factor computation
diff mbox

Message ID 1272628495-13934-1-git-send-email-thomas.koeller@baslerweb.com
State Accepted
Headers show

Commit Message

thomas.koeller@baslerweb.com May 31, 2010, 2:33 p.m. UTC
None

Patch
diff mbox

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);