mmc: sdhci: Handle failure of enable_irq_wake()
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 9 Jan 2018 07:52:21 +0000 (09:52 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 17 Jan 2018 11:30:43 +0000 (12:30 +0100)
commit58e79b60751d1ea6d13e09c6095f5e4cd5e040ee
tree29cb63b4a859ef2037fff3612267ad1f2b7149ec
parent551d6bde462932e8a024d89e7325f7c6e073500b
mmc: sdhci: Handle failure of enable_irq_wake()

Now that sdhci_enable_irq_wakeups() is a local function, change it to
return whether the IRQ wakeup was successfully enabled. This is in
preparation for adding more conditions for whether IRQ wakeup is enabled.

Note it is assumed, for SDHCI devices, that suspend is more important than
wakeup, so we continue to suspend regardless.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h