ASoC: fsl-esai: Convert to use regmap framework's endianness method.
authorXiubo Li <Li.Xiubo@freescale.com>
Mon, 25 Aug 2014 03:31:00 +0000 (11:31 +0800)
committerMark Brown <broonie@linaro.org>
Wed, 27 Aug 2014 18:19:28 +0000 (19:19 +0100)
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_esai.c

index 72d154e7dd03c3695860dd4da8b00fd6bc2ff3c5..2882fc66a10dce32f1959dc926f2727d702fa095 100644 (file)
@@ -707,7 +707,7 @@ static bool fsl_esai_writeable_reg(struct device *dev, unsigned int reg)
        }
 }
 
-static struct regmap_config fsl_esai_regmap_config = {
+static const struct regmap_config fsl_esai_regmap_config = {
        .reg_bits = 32,
        .reg_stride = 4,
        .val_bits = 32,
@@ -733,9 +733,6 @@ static int fsl_esai_probe(struct platform_device *pdev)
        esai_priv->pdev = pdev;
        strcpy(esai_priv->name, np->name);
 
-       if (of_property_read_bool(np, "big-endian"))
-               fsl_esai_regmap_config.val_format_endian = REGMAP_ENDIAN_BIG;
-
        /* Get the addresses and IRQ */
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        regs = devm_ioremap_resource(&pdev->dev, res);