summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Patil <sspatil@google.com>2020-03-18 23:14:46 -0700
committerSandeep Patil <sspatil@google.com>2020-03-23 19:24:35 -0700
commit1e03423a5b2b20ce1fc2b86cc1691ead277fdeed (patch)
tree5b4534d562179867e286fae6e6b56786da6d094b
parent89cf716910274309a413d112a7e0b46b981cfe4f (diff)
downloaddata-kernel-1e03423a5b2b20ce1fc2b86cc1691ead277fdeed.tar.gz
GKI: ANDROID: Fix drivers for wakeup_source_register prototype change
The wakeup_source_register() is the only function all wakeup sources must be initiated with starting now. This allows for all wakeup sources to now show up in /sys/class/wakeup/ for userspace to read. This change fixes all current usage of wakeup_source_register() to also add a possible 'struct device' parameter associated with it or use NULL when it doesn't exist. Bug: 129087298 Bug: 151789966 Test: Launch Camera + Take Picture / Record Video Test: Connect to Wifi Network Test: Play Youtube Video Test: USB debugging works Test: Touchscreen / multi touch works Test: Audio playback Test: Battery percentage and power supplies work. Signed-off-by: Sandeep Patil <sspatil@google.com> Change-Id: Ieb6d0a38ff012c9916bb46c238b08070fb98449a
-rw-r--r--drivers/generic-sw-bridge/generic_sw_bridge_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/generic-sw-bridge/generic_sw_bridge_main.c b/drivers/generic-sw-bridge/generic_sw_bridge_main.c
index eb2cf36..5bc1caa 100644
--- a/drivers/generic-sw-bridge/generic_sw_bridge_main.c
+++ b/drivers/generic-sw-bridge/generic_sw_bridge_main.c
@@ -2014,7 +2014,7 @@ static int __init gsb_init_module(void)
pgsb_ctx->gsb_lock_acquired = false;
- pgsb_ctx->gsb_wake_src = wakeup_source_register("gsb_wake_source");
+ pgsb_ctx->gsb_wake_src = wakeup_source_register(NULL, "gsb_wake_source");
if (!pgsb_ctx->gsb_wake_src) {
DEBUG_ERROR("wakeup source registration failed\n");
retval = -ENODEV;