spi: fsl-dspi: remove useless code for dspi driver.
authorXiubo Li <Li.Xiubo@freescale.com>
Thu, 9 Oct 2014 03:27:45 +0000 (11:27 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 20 Oct 2014 11:28:35 +0000 (12:28 +0100)
Since we are using regmap framework's internal locks, so the
lock_arg for dspi_regmap_config is redundant here.

This patch just remove it, and then the dspi_regmap_config could
be const type.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c

index 448216025ce852ed10a95c1d2f689f512d6499bf..12dc99546394f3cad1e0f772288de5092d249eeb 100644 (file)
@@ -438,7 +438,7 @@ static int dspi_resume(struct device *dev)
 
 static SIMPLE_DEV_PM_OPS(dspi_pm, dspi_suspend, dspi_resume);
 
-static struct regmap_config dspi_regmap_config = {
+static const struct regmap_config dspi_regmap_config = {
        .reg_bits = 32,
        .val_bits = 32,
        .reg_stride = 4,
@@ -492,7 +492,6 @@ static int dspi_probe(struct platform_device *pdev)
                goto out_master_put;
        }
 
-       dspi_regmap_config.lock_arg = dspi;
        dspi->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "dspi", base,
                                                &dspi_regmap_config);
        if (IS_ERR(dspi->regmap)) {