From: Prathyush K Date: Mon, 16 Jun 2014 21:12:23 +0000 (-0700) Subject: mfd: cros_ec_spi: Set wakeup capability X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fb50497ce2ad091f16e0603a88c51696e160d5fe;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git mfd: cros_ec_spi: Set wakeup capability 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 Signed-off-by: Doug Anderson Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/cros_ec_spi.c b/drivers/mfd/cros_ec_spi.c index 0cbc3dbeb37f..1fcc65ecad0e 100644 --- a/drivers/mfd/cros_ec_spi.c +++ b/drivers/mfd/cros_ec_spi.c @@ -381,6 +381,8 @@ static int cros_ec_spi_probe(struct spi_device *spi) return err; } + device_init_wakeup(&spi->dev, true); + return 0; }