]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit74f9721b1c410590306d1fb0d5e30bf91d6bd294
treee69a59795438a05ccca8fd77549a3474801b3c86
parent1dd31d33b058b4cd3864e382929e7a9b01521d93
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: 64bd9b934c01 ("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