diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2014-08-24 23:30:59 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-08-27 14:19:20 -0400 |
commit | bf16d883263dedefb6149916e41b3e2779bb1573 (patch) | |
tree | 531330a47ba6d8c0d041ee37fb23f2c9fb71e4f2 | |
parent | e94b8f50907c063de25ca52072e54b0581614995 (diff) |
ASoC: fsl-asrc: Convert to use regmap framework's endianness method.
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/fsl/fsl_asrc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index 822110420b71..3b145313f93e 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c | |||
@@ -684,7 +684,7 @@ static bool fsl_asrc_writeable_reg(struct device *dev, unsigned int reg) | |||
684 | } | 684 | } |
685 | } | 685 | } |
686 | 686 | ||
687 | static struct regmap_config fsl_asrc_regmap_config = { | 687 | static const struct regmap_config fsl_asrc_regmap_config = { |
688 | .reg_bits = 32, | 688 | .reg_bits = 32, |
689 | .reg_stride = 4, | 689 | .reg_stride = 4, |
690 | .val_bits = 32, | 690 | .val_bits = 32, |
@@ -802,10 +802,6 @@ static int fsl_asrc_probe(struct platform_device *pdev) | |||
802 | 802 | ||
803 | asrc_priv->paddr = res->start; | 803 | asrc_priv->paddr = res->start; |
804 | 804 | ||
805 | /* Register regmap and let it prepare core clock */ | ||
806 | if (of_property_read_bool(np, "big-endian")) | ||
807 | fsl_asrc_regmap_config.val_format_endian = REGMAP_ENDIAN_BIG; | ||
808 | |||
809 | asrc_priv->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "mem", regs, | 805 | asrc_priv->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "mem", regs, |
810 | &fsl_asrc_regmap_config); | 806 | &fsl_asrc_regmap_config); |
811 | if (IS_ERR(asrc_priv->regmap)) { | 807 | if (IS_ERR(asrc_priv->regmap)) { |