]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit93b31f48b3ba84cc5fc310c9765d11ebbeede7b5
treecd4d16c397046a5bb927c558a9ce2d75314b433f
parenta848748959d554666b34cffc08ef2d23f4bb2990
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