ar71xx: fix return statement in the rtl8366 driver
authorFelix Fietkau <nbd@openwrt.org>
Sun, 17 Jan 2010 22:57:08 +0000 (22:57 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 17 Jan 2010 22:57:08 +0000 (22:57 +0000)
SVN-Revision: 19204

target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c

index 3b4795ba4b3f094f32d0ec995cfd95c7086e1236..e2172f1b90a0ab386cf50db3bb33826ae9ea61bc 100644 (file)
@@ -1731,7 +1731,7 @@ static int rtl8366_smi_switch_init(struct rtl8366_smi *smi)
        if (err)
                dev_err(&smi->pdev->dev, "switch registration failed\n");
 
-       return;
+       return err;
 }
 
 static void rtl8366_smi_switch_cleanup(struct rtl8366_smi *smi)