]> 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, 11 May 2017 10:36:56 +0000 (12:36 +0200)
commitca10aa75617c1a2a393b2f3dadb479aec5943966
treee89852d86e02fb4f65570d5836a6a454351ae14a
parenta267d3accd98fe246df72d6f36922ba146b437d4
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