aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-02-08 22:35:59 -0500
committerMark Brown <broonie@linaro.org>2014-02-10 07:16:17 -0500
commit79c2f49a2dfed00e51b41427ef89c5e67263a8c3 (patch)
tree7d95807942a926e5e09c120db3161f272e907279 /drivers
parent77c398f58c1fe57224c17f6d4360c7f74cc0e418 (diff)
spi: omap-100k: Remove unused fields from struct omap1_spi100k
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/spi-omap-100k.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c
index afc91c4d8461..3b8b36a144b4 100644
--- a/drivers/spi/spi-omap-100k.c
+++ b/drivers/spi/spi-omap-100k.c
@@ -83,15 +83,11 @@
83#define SPI_SHUTDOWN 1 83#define SPI_SHUTDOWN 1
84 84
85struct omap1_spi100k { 85struct omap1_spi100k {
86 struct spi_master *master;
87 struct clk *ick; 86 struct clk *ick;
88 struct clk *fck; 87 struct clk *fck;
89 88
90 /* Virtual base address of the controller */ 89 /* Virtual base address of the controller */
91 void __iomem *base; 90 void __iomem *base;
92
93 /* State of the SPI */
94 unsigned int state;
95}; 91};
96 92
97struct omap1_spi100k_cs { 93struct omap1_spi100k_cs {
@@ -425,7 +421,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev)
425 platform_set_drvdata(pdev, master); 421 platform_set_drvdata(pdev, master);
426 422
427 spi100k = spi_master_get_devdata(master); 423 spi100k = spi_master_get_devdata(master);
428 spi100k->master = master;
429 424
430 /* 425 /*
431 * The memory region base address is taken as the platform_data. 426 * The memory region base address is taken as the platform_data.
@@ -452,8 +447,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev)
452 if (status < 0) 447 if (status < 0)
453 goto err; 448 goto err;
454 449
455 spi100k->state = SPI_RUNNING;
456
457 return status; 450 return status;
458 451
459err: 452err: