summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/cros_ec_spi.c
diff options
context:
space:
mode:
authorPrathyush K <prathyush.k@samsung.com>2014-06-16 23:12:23 +0200
committerLee Jones <lee.jones@linaro.org>2014-07-09 15:58:06 +0200
commitfb50497ce2ad091f16e0603a88c51696e160d5fe (patch)
tree653697f9617b735c6aa0501e884be56b004402d3 /drivers/mfd/cros_ec_spi.c
parentdt-binding: mfd: as3722: Correct macro name (diff)
downloadlinux-fb50497ce2ad091f16e0603a88c51696e160d5fe.tar.xz
linux-fb50497ce2ad091f16e0603a88c51696e160d5fe.zip
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 <prathyush.k@samsung.com> Signed-off-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/cros_ec_spi.c')
-rw-r--r--drivers/mfd/cros_ec_spi.c2
1 files changed, 2 insertions, 0 deletions
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;
}