]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: PCC: Fix return value of pcc_mbox_request_channel()
authorHoan Tran <hotran@apm.com>
Fri, 14 Oct 2016 23:20:21 +0000 (16:20 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 17 Oct 2016 12:26:49 +0000 (14:26 +0200)
commit11b3596a83202eece84ad75a941e0707668045fa
treec8d54a14533d9542874726d2716a359cbfd2ee96
parentfddd8cae1079e9affc29e99f51112a0a277e6cee
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: Duc Dang <dhdang@apm.com>
Signed-off-by: Hoan Tran <hotran@apm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/pcc.h