Re: [PATCH] mailbox: PCC: Fix return value of pcc_mbox_request_channel()

2016-10-21 Thread Rafael J. Wysocki
On Friday, October 14, 2016 04:20:21 PM Hoan Tran wrote: > 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 >

Re: [PATCH] mailbox: PCC: Fix return value of pcc_mbox_request_channel()

2016-10-21 Thread Rafael J. Wysocki
On Friday, October 14, 2016 04:20:21 PM Hoan Tran wrote: > 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 > Signed-off-by: Hoan

[PATCH] mailbox: PCC: Fix return value of pcc_mbox_request_channel()

2016-10-14 Thread Hoan Tran
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 Signed-off-by: Hoan Tran --- include/acpi/pcc.h | 2 +- 1

[PATCH] mailbox: PCC: Fix return value of pcc_mbox_request_channel()

2016-10-14 Thread Hoan Tran
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 Signed-off-by: Hoan Tran --- include/acpi/pcc.h | 2 +- 1 file changed, 1 insertion(+), 1