]> git.sur5r.net Git - u-boot/commit
imx-common: rdc-sema: correct return value
authorPeng Fan <peng.fan@nxp.com>
Fri, 21 Apr 2017 08:56:50 +0000 (16:56 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 18 May 2017 09:23:31 +0000 (11:23 +0200)
commit354fa867103bb22a36371a90664a072c9aa71db7
treea97e85124bc5752ae590905882f21440743d2ac4
parent80512547ba3706679a039ae823bb957af422580e
imx-common: rdc-sema: correct return value

When unlock, if caller is not the sema owner,
return -EACCES, not 1.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/imx-common/rdc-sema.c