spi/davinci: Fix clock prescale factor computation
authorThomas Koeller <thomas.koeller@baslerweb.com>
Mon, 26 Apr 2010 09:01:45 +0000 (09:01 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 25 May 2010 06:23:54 +0000 (00:23 -0600)
Computation of the clock prescaler value returned bogus results if
the requested SPI clock was impossible to set. It now sets either
the maximum or minimum clock frequency, as appropriate.

Signed-off-by: Thomas Koeller <thomas.koeller@baslerweb.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

No differences found