]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/spi/ich.c
spi: Use mode for rx mode flags
[karo-tx-uboot.git] / drivers / spi / ich.c
index 00b2fed7b74aef30ec3352ad9699847d88151e7d..caf0103dc386ec732dfa444b4e734da25450f3ca 100644 (file)
@@ -649,10 +649,8 @@ static int ich_spi_child_pre_probe(struct udevice *dev)
         * ICH 7 SPI controller only supports array read command
         * and byte program command for SST flash
         */
-       if (plat->ich_version == ICHV_7) {
-               slave->mode_rx = SPI_RX_SLOW;
-               slave->mode = SPI_TX_BYTE;
-       }
+       if (plat->ich_version == ICHV_7)
+               slave->mode = SPI_RX_SLOW | SPI_TX_BYTE;
 
        return 0;
 }