]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: Fix inconsistent IS_ERR and PTR_ERR in cpsw_probe()
authorYueHaibing <yuehaibing@huawei.com>
Tue, 30 Apr 2019 01:55:24 +0000 (01:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 18:29:35 +0000 (14:29 -0400)
commite8d7f8bf028ac2a9e5a264a03f3e637abfa7d7a2
tree3ec76db974b912867e56031f4ec13567d1aff07d
parentf921e9c31c72eec44dd3c154b3574c1eaa062120
net: ethernet: ti: cpsw: Fix inconsistent IS_ERR and PTR_ERR in cpsw_probe()

Fix inconsistent IS_ERR and PTR_ERR in cpsw_probe,
The proper pointer to use is clk instead of mode.

This issue was detected with the help of Coccinelle.

Fixes: 7fc21b48d0ef ("net: ethernet: ti: cpsw: refactor probe to group common hw initialization")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c