]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: mvebu: Use the a standard errno in mvebu_get_soc_id
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Fri, 20 Jun 2014 14:35:52 +0000 (16:35 +0200)
committerJason Cooper <jason@lakedaemon.net>
Mon, 30 Jun 2014 17:40:58 +0000 (17:40 +0000)
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>
arch/arm/mach-mvebu/mvebu-soc-id.c

index d0f35b4d4a234af8ff826c30b0bf6e8dfaea19b0..12c66cac967de1f6b1a03fd9cf233d8b401e71d4 100644 (file)
@@ -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)