Skip to content

Commit

Permalink
OMAP2 McSPI code cleanup
Browse files Browse the repository at this point in the history
Remove unused variable & write space

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
kyungmin-park authored and Linus Torvalds committed Oct 16, 2007
1 parent 8b7f9b8 commit 86eeb6f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/spi/omap2_mcspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ static int omap2_mcspi_setup(struct spi_device *spi)

clk_enable(mcspi->ick);
clk_enable(mcspi->fck);
ret = omap2_mcspi_setup_transfer(spi, NULL);
ret = omap2_mcspi_setup_transfer(spi, NULL);
clk_disable(mcspi->fck);
clk_disable(mcspi->ick);

Expand Down Expand Up @@ -693,7 +693,6 @@ static void omap2_mcspi_work(struct work_struct *work)
struct spi_device *spi;
struct spi_transfer *t = NULL;
int cs_active = 0;
struct omap2_mcspi_device_config *conf;
struct omap2_mcspi_cs *cs;
int par_override = 0;
int status = 0;
Expand All @@ -706,7 +705,6 @@ static void omap2_mcspi_work(struct work_struct *work)
spin_unlock_irq(&mcspi->lock);

spi = m->spi;
conf = spi->controller_data;
cs = spi->controller_state;

omap2_mcspi_set_enable(spi, 1);
Expand Down

0 comments on commit 86eeb6f

Please sign in to comment.