soc: spacemit: pm_domain: Add return -EINVAL in notifier_call
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 7 Jan 2025 00:45:57 +0000 (09:45 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 29 Apr 2025 03:38:28 +0000 (12:38 +0900)
commit510d6a16df3fe30156c907a55c29ea5a7aea4452
treefc289bde788c66109f7a808ae895f218199174df
parent2c555f41a5b7df0e954ca4b7af2bddca895fdd95
soc: spacemit: pm_domain: Add return -EINVAL in notifier_call

If action is not matched with anything, it needs to return with value.
lock/unlock will be a pair. Otherwise unlock is called twice.

Change-Id: I4eb3955572635257eb5bdf992c201c5efb509495
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/soc/spacemit/pm_domain/k1x-pm_domain.c