spi: nuc900: Remove unused fields from struct nuc900_spi
PATCH 1/1 spi: nuc900: Remove unused fields from struct nuc900_spi
Signed-off-by Axel Lin <[email protected]>
--- drivers/spi/spi-nuc900.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/spi/spi-nuc900.c +3 -6
@@ -57,11 +57,8 @@ struct nuc900_spi {unsigned char *rx;struct clk *clk;struct spi_master *master; -struct spi_device *curdev; -struct device *dev;struct nuc900_spi_info *pdata;spinlock_t lock; -struct resource *res; };static inline struct nuc900_spi *to_hw (struct spi_device *sdev)
@@ -337,6 +334,7 @@ static int nuc900_spi_probe(struct platform_device *pdev) {struct nuc900_spi *hw;struct spi_master *master; +struct resource *res;int err =0 ; master =spi_alloc_master (&pdev->dev,sizeof (struct nuc900_spi ));
@@ -348,7 +346,6 @@ static int nuc900_spi_probe(struct platform_device *pdev) hw =spi_master_get_devdata (master); hw->master = master; hw->pdata =dev_get_platdata (&pdev->dev); - hw->dev = &pdev->dev;if (hw->pdata ==NULL ) {dev_err (&pdev->dev,"No platform data supplied\n" );
@@ -368,8 +365,8 @@ static int nuc900_spi_probe(struct platform_device *pdev) hw->bitbang.chipselect = nuc900_spi_chipsel; hw->bitbang.txrx_bufs = nuc900_spi_txrx; - hw->res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); - hw->regs =devm_ioremap_resource (&pdev->dev, hw->res); + res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); + hw->regs =devm_ioremap_resource (&pdev->dev, res);if (IS_ERR (hw->regs)) { err =PTR_ERR (hw->regs); goto err_pdata;
Signature · 8 lines
1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Mark Brown
AppliedQuoted 1 line · Axel Lin
Signed-off-by Axel Lin <[email protected]>
Applied, thanks.