summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mvebu
diff options
context:
space:
mode:
authorGregory CLEMENT <gregory.clement@free-electrons.com>2014-06-20 16:35:52 +0200
committerJason Cooper <jason@lakedaemon.net>2014-06-30 17:40:58 +0000
commit5e80d81acc420fa33b56078f73f38546ab99be6f (patch)
treeddfc638e259a4c63fa9872e1bf9d088314d76354 /arch/arm/mach-mvebu
parent9d6373485c0c3b38de666d8e0af95ee7c692ecbe (diff)
downloadop-kernel-dev-5e80d81acc420fa33b56078f73f38546ab99be6f.zip
op-kernel-dev-5e80d81acc420fa33b56078f73f38546ab99be6f.tar.gz
ARM: mvebu: Use the a standard errno in mvebu_get_soc_id
Instead of using -1 as error value, use a standard errno. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Link: https://lkml.kernel.org/r/1403274953-21790-2-git-send-email-gregory.clement@free-electrons.com Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-mvebu')
-rw-r--r--arch/arm/mach-mvebu/mvebu-soc-id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mvebu/mvebu-soc-id.c b/arch/arm/mach-mvebu/mvebu-soc-id.c
index d0f35b4..12c66ca 100644
--- a/arch/arm/mach-mvebu/mvebu-soc-id.c
+++ b/arch/arm/mach-mvebu/mvebu-soc-id.c
@@ -51,7 +51,7 @@ int mvebu_get_soc_id(u32 *dev, u32 *rev)
*rev = soc_rev;
return 0;
} else
- return -1;
+ return -ENODEV;
}
static int __init mvebu_soc_id_init(void)
OpenPOWER on IntegriCloud