[ERD][RAMEN9610-20321][9610] driver: chub: exit resume when not working
authorSukwon Ryoo <sw.ryoo@samsung.com>
Fri, 27 Sep 2019 10:33:26 +0000 (19:33 +0900)
committerrobot <robot@samsung.com>
Mon, 7 Oct 2019 05:06:42 +0000 (14:06 +0900)
Especially in charger mode

Change-Id: I58f40b4ba373b3832e5d2b71add8d07055d99eaa
Signed-off-by: Sukwon Ryoo <sw.ryoo@samsung.com>
drivers/staging/nanohub/chub.c

index 75f51f4498eb07891c515f9f5328fc443455175e..1053804539058e58d2969a9b16e4aac21fd83cb2 100644 (file)
@@ -1788,7 +1788,7 @@ static void contexthub_resume(struct device *dev)
 
        int ret;
        if (atomic_read(&ipc->chub_status) != CHUB_ST_RUN)
-               ret = 0;
+               return;
 
        dev_info(dev, "nanohub log to kernel on\n");
        ipc_hw_write_shared_reg(AP, AP_WAKE, SR_3);