Explorar o código

MIPS: Alchemy: Fix typo in MAC0 registration

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>
Manuel Lauss %!s(int64=14) %!d(string=hai) anos
pai
achega
c78c488273
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/mips/alchemy/common/platform.c

+ 1 - 1
arch/mips/alchemy/common/platform.c

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