diff mbox

spi: omap-100k: Remove unused fields from struct omap1_spi100k

Message ID 1391916959.20382.4.camel@phoenix (mailing list archive)
State Accepted
Commit 79c2f49a2dfed00e51b41427ef89c5e67263a8c3
Headers show

Commit Message

Axel Lin Feb. 9, 2014, 3:35 a.m. UTC
Both *master and state are not really used, remove them.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/spi/spi-omap-100k.c | 7 -------
 1 file changed, 7 deletions(-)

Comments

Mark Brown Feb. 10, 2014, 12:17 p.m. UTC | #1
On Sun, Feb 09, 2014 at 11:35:59AM +0800, Axel Lin wrote:
> Both *master and state are not really used, remove them.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c
index 657184a..81f2e6e 100644
--- a/drivers/spi/spi-omap-100k.c
+++ b/drivers/spi/spi-omap-100k.c
@@ -83,15 +83,11 @@ 
 #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 {
@@ -427,7 +423,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.
@@ -454,8 +449,6 @@  static int omap1_spi100k_probe(struct platform_device *pdev)
 	if (status < 0)
 		goto err;
 
-	spi100k->state = SPI_RUNNING;
-
 	return status;
 
 err: