projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.denx.de/u-boot-dm
[platform/kernel/u-boot.git]
/
drivers
/
spi
/
spi-uclass.c
diff --git
a/drivers/spi/spi-uclass.c
b/drivers/spi/spi-uclass.c
index
64eb1f6
..
7a57bce
100644
(file)
--- a/
drivers/spi/spi-uclass.c
+++ b/
drivers/spi/spi-uclass.c
@@
-57,7
+57,7
@@
int spi_claim_bus(struct spi_slave *slave)
speed = slave->max_hz;
if (spi->max_hz) {
if (speed)
- speed = min(speed, spi->max_hz);
+ speed = min(speed,
(int)
spi->max_hz);
else
speed = spi->max_hz;
}