Skip to content
Commit d0679cfa authored by Hoan Tran's avatar Hoan Tran Committed by Rafael J. Wysocki
Browse files

mailbox: PCC: Fix return value of pcc_mbox_request_channel()



When CONFIG_PCC is disabled, pcc_mbox_request_channel() needs to
return ERR_PTR(-ENODEV), not a NULL pointer, as the callers of
this function use IS_ERR() to check for error code.

Signed-off-by: default avatarDuc Dang <dhdang@apm.com>
Signed-off-by: default avatarHoan Tran <hotran@apm.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent b59c4b3d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment