Fix the return value so that standard errno return values can be used. Signed-off-by: Marek Vasut <marex@denx.de>