]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: Alchemy: Fix typo in MAC0 registration
authorManuel Lauss <manuel.lauss@googlemail.com>
Tue, 2 Aug 2011 13:50:56 +0000 (15:50 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 17 Sep 2011 00:45:07 +0000 (02:45 +0200)
Harmless typo which prints an error message although MAC0 was registered
successfully.

Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2672/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/common/platform.c

index 4cb55764441261b2108b67c508edfe06fb885d67..c8e5d72a582684ff79e022a0c0b9b3313a700034 100644 (file)
@@ -321,7 +321,7 @@ static void __init alchemy_setup_macs(int ctype)
                memcpy(au1xxx_eth0_platform_data.mac, ethaddr, 6);
 
        ret = platform_device_register(&au1xxx_eth0_device);
-       if (!ret)
+       if (ret)
                printk(KERN_INFO "Alchemy: failed to register MAC0\n");