spi: Drop duplicate code to set master->dev.parent
authorAxel Lin <axel.lin@ingics.com>
Tue, 26 Apr 2016 10:53:12 +0000 (18:53 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 26 Apr 2016 10:56:09 +0000 (11:56 +0100)
It's done by spi_alloc_master().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-axi-spi-engine.c
drivers/spi/spi-dln2.c
drivers/spi/spi-pxa2xx.c

index c968ab210a5157482f199f23328d7fb22c27e0c7..2b1456e5e2219c19cf5ab83c2b2cd61d987e118f 100644 (file)
@@ -525,7 +525,6 @@ static int spi_engine_probe(struct platform_device *pdev)
        if (ret)
                goto err_ref_clk_disable;
 
-       master->dev.parent = &pdev->dev;
        master->dev.of_node = pdev->dev.of_node;
        master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_3WIRE;
        master->bits_per_word_mask = SPI_BPW_MASK(8);
index 4e8a8629d51414d72549fa9b7aa15f6c507541c2..b62a99caacc0648ff24a116417f220ccb1a63b45 100644 (file)
@@ -701,7 +701,6 @@ static int dln2_spi_probe(struct platform_device *pdev)
        }
 
        dln2->master = master;
-       dln2->master->dev.parent = dev;
        dln2->master->dev.of_node = dev->of_node;
        dln2->pdev = pdev;
        dln2->port = pdata->port;
index 85e59a406a4c01fabef55679c5ffb9b9583bd852..e48320667b37372246d1b17a35ce03d84dc613f0 100644 (file)
@@ -1543,7 +1543,6 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)
        drv_data->pdev = pdev;
        drv_data->ssp = ssp;
 
-       master->dev.parent = &pdev->dev;
        master->dev.of_node = pdev->dev.of_node;
        /* the spi->mode bits understood by this driver: */
        master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP;