]> Git Repo - u-boot.git/blobdiff - drivers/spi/omap3_spi.c
drivers: rename drivers to match compatible string
[u-boot.git] / drivers / spi / omap3_spi.c
index c7fcf050a58738090eb7876d7622c52c949690fd..ae08531f1ed22d7fd3b5dee5a878f70efcdb7281 100644 (file)
@@ -21,6 +21,7 @@
 #include <spi.h>
 #include <malloc.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -108,7 +109,7 @@ struct mcspi {
 };
 
 struct omap3_spi_priv {
-#ifndef CONFIG_DM_SPI
+#if !CONFIG_IS_ENABLED(DM_SPI)
        struct spi_slave slave;
 #endif
        struct mcspi *regs;
@@ -415,7 +416,7 @@ static void _omap3_spi_set_wordlen(struct omap3_spi_priv *priv)
        unsigned int confr;
 
        /* McSPI individual channel configuration */
-       confr = readl(&priv->regs->channel[priv->wordlen].chconf);
+       confr = readl(&priv->regs->channel[priv->cs].chconf);
 
        /* wordlength */
        confr &= ~OMAP3_MCSPI_CHCONF_WL_MASK;
@@ -454,7 +455,7 @@ static void _omap3_spi_claim_bus(struct omap3_spi_priv *priv)
        writel(conf, &priv->regs->modulctrl);
 }
 
-#ifndef CONFIG_DM_SPI
+#if !CONFIG_IS_ENABLED(DM_SPI)
 
 static inline struct omap3_spi_priv *to_omap3_spi(struct spi_slave *slave)
 {
This page took 0.029072 seconds and 4 git commands to generate.