Skip to content

Commit

Permalink
mfd: cros_ec_spi: Set wakeup capability
Browse files Browse the repository at this point in the history
Set the device as wakeup capable and register the wakeup source.

Note: Though it makes more sense to have the SPI framework do this,
(either via device tree or by board_info)
this change is as per an existing mail chain:
https://lkml.org/lkml/2009/8/27/291

Signed-off-by: Prathyush K <prathyush.k@samsung.com>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
Prathyush K authored and Lee Jones committed Jul 9, 2014
1 parent 7811a98 commit fb50497
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mfd/cros_ec_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ static int cros_ec_spi_probe(struct spi_device *spi)
return err;
}

device_init_wakeup(&spi->dev, true);

return 0;
}

Expand Down

0 comments on commit fb50497

Please sign in to comment.