Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307640
b: refs/heads/master
c: 39f8052
h: refs/heads/master
v: v3
  • Loading branch information
Shubhrajyoti D authored and Grant Likely committed Apr 10, 2012
1 parent 2bf8269 commit 2a4ec91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27b5284cfbe187732ebb184b03ea693f44837f9d
refs/heads/master: 39f8052d2e0c35533e776ef1235e4cc32cc35d02
7 changes: 3 additions & 4 deletions trunk/drivers/spi/spi-omap2-mcspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1050,16 +1050,15 @@ static int __init omap2_mcspi_master_setup(struct omap2_mcspi *mcspi)
{
struct spi_master *master = mcspi->master;
struct omap2_mcspi_regs *ctx = &mcspi->ctx;
u32 tmp;
int ret = 0;

ret = omap2_mcspi_enable_clocks(mcspi);
if (ret < 0)
return ret;

tmp = OMAP2_MCSPI_WAKEUPENABLE_WKEN;
mcspi_write_reg(master, OMAP2_MCSPI_WAKEUPENABLE, tmp);
ctx->wakeupenable = tmp;
mcspi_write_reg(master, OMAP2_MCSPI_WAKEUPENABLE,
OMAP2_MCSPI_WAKEUPENABLE_WKEN);
ctx->wakeupenable = OMAP2_MCSPI_WAKEUPENABLE_WKEN;

omap2_mcspi_set_master_mode(master);
omap2_mcspi_disable_clocks(mcspi);
Expand Down

0 comments on commit 2a4ec91

Please sign in to comment.