]> git.baikalelectronics.ru Git - kernel.git/commit
net/macb: unify clock management
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Sat, 7 Mar 2015 06:23:31 +0000 (07:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Mar 2015 03:31:22 +0000 (22:31 -0500)
commit583f67901d83f841298e51c08fe6e23934f3c941
treecd4d16c397046a5bb927c558a9ce2d75314b433f
parent047fd76a028d1f96615f8bce3797ee45d636eed0
net/macb: unify clock management

Most of the functions from the Common Clk Framework handle NULL pointer as
input argument.

Since the TX clock is optional, we now set tx_clk to NULL value
instead of ERR_PTR(-ENOENT) when this clock is not available. This simplifies
the clock management and avoid the need to test tx_clk value.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c