Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb50497c authored by Prathyush K's avatar Prathyush K Committed by Lee Jones
Browse files

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: default avatarPrathyush K <prathyush.k@samsung.com>
Signed-off-by: default avatarDoug Anderson <dianders@chromium.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 7811a989
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -381,6 +381,8 @@ static int cros_ec_spi_probe(struct spi_device *spi)
		return err;
	}

	device_init_wakeup(&spi->dev, true);

	return 0;
}