spi: omap-100k: Remove unused fields from struct omap1_spi100k
authorAxel Lin <axel.lin@ingics.com>
Sun, 9 Feb 2014 03:35:59 +0000 (11:35 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 10 Feb 2014 12:16:17 +0000 (12:16 +0000)
Both *master and state are not really used, remove them.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-omap-100k.c

index afc91c4d84612016fd74a1267c5fec8124dff078..3b8b36a144b4919ac9383ea8f6b05c6d8d695653 100644 (file)
 #define SPI_SHUTDOWN   1
 
 struct omap1_spi100k {
-       struct spi_master       *master;
        struct clk              *ick;
        struct clk              *fck;
 
        /* Virtual base address of the controller */
        void __iomem            *base;
-
-       /* State of the SPI */
-       unsigned int            state;
 };
 
 struct omap1_spi100k_cs {
@@ -425,7 +421,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, master);
 
        spi100k = spi_master_get_devdata(master);
-       spi100k->master = master;
 
        /*
         * The memory region base address is taken as the platform_data.
@@ -452,8 +447,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev)
        if (status < 0)
                goto err;
 
-       spi100k->state = SPI_RUNNING;
-
        return status;
 
 err:
This page took 0.025825 seconds and 5 git commands to generate.