net: sun4i-emac: fix a typo in emac_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 3 Jun 2013 03:36:52 +0000 (03:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2013 00:19:57 +0000 (17:19 -0700)
Just fixed a typo in emac_probe().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/allwinner/sun4i-emac.c

index b411344e719e6fceab60c78851c42e964dcb5a3f..26083cdc25ab3fd2e6a13c9fc75ee864f1095cc8 100644 (file)
@@ -821,7 +821,7 @@ static int emac_probe(struct platform_device *pdev)
        db->membase = of_iomap(np, 0);
        if (!db->membase) {
                dev_err(&pdev->dev, "failed to remap registers\n");
-               return -ENOMEM;
+               ret = -ENOMEM;
                goto out;
        }