fsl/fman: fix error return code in mac_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 15:19:56 +0000 (15:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Oct 2016 17:16:52 +0000 (13:16 -0400)
commit3f3177bb680fc08300e6f2341f44755ff90a358a
treee69a59795438a05ccca8fd77549a3474801b3c86
parenta0e65de71527477b100afe1e9ab2667d70f94d9e
fsl/fman: fix error return code in mac_probe()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 3933961682a3 ("fsl/fman: Add FMan MAC driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/mac.c