Skip to content
Commit 93b26052 authored by Dan Carpenter's avatar Dan Carpenter Committed by Andy Gross
Browse files

soc: qcom: cmd-db: Fix an error code in cmd_db_dev_probe()



The memremap() function doesn't return error pointers, it returns NULL.
This code is returning "ret = PTR_ERR(NULL);" which is success, but it
should return -ENOMEM.

Fixes: 312416d9 ("drivers: qcom: add command DB driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarAndy Gross <andy.gross@linaro.org>
parent 9324df58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment