aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2014-08-24 23:31:00 -0400
committerMark Brown <broonie@linaro.org>2014-08-27 14:19:28 -0400
commit92bd0334b27845f250f1fadb091242140391c99b (patch)
tree633685079e426a1bf8d2f821fe7eba09c909011e
parentbf16d883263dedefb6149916e41b3e2779bb1573 (diff)
ASoC: fsl-esai: Convert to use regmap framework's endianness method.
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/fsl/fsl_esai.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c
index 72d154e7dd03..2882fc66a10d 100644
--- a/sound/soc/fsl/fsl_esai.c
+++ b/sound/soc/fsl/fsl_esai.c
@@ -707,7 +707,7 @@ static bool fsl_esai_writeable_reg(struct device *dev, unsigned int reg)
707 } 707 }
708} 708}
709 709
710static struct regmap_config fsl_esai_regmap_config = { 710static const struct regmap_config fsl_esai_regmap_config = {
711 .reg_bits = 32, 711 .reg_bits = 32,
712 .reg_stride = 4, 712 .reg_stride = 4,
713 .val_bits = 32, 713 .val_bits = 32,
@@ -733,9 +733,6 @@ static int fsl_esai_probe(struct platform_device *pdev)
733 esai_priv->pdev = pdev; 733 esai_priv->pdev = pdev;
734 strcpy(esai_priv->name, np->name); 734 strcpy(esai_priv->name, np->name);
735 735
736 if (of_property_read_bool(np, "big-endian"))
737 fsl_esai_regmap_config.val_format_endian = REGMAP_ENDIAN_BIG;
738
739 /* Get the addresses and IRQ */ 736 /* Get the addresses and IRQ */
740 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 737 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
741 regs = devm_ioremap_resource(&pdev->dev, res); 738 regs = devm_ioremap_resource(&pdev->dev, res);