diff options
author | Cyrille Pitchen <cyrille.pitchen@atmel.com> | 2015-03-07 07:23:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-08 04:31:22 +0100 |
commit | 93b31f48b3ba84cc5fc310c9765d11ebbeede7b5 (patch) | |
tree | cd4d16c397046a5bb927c558a9ce2d75314b433f /drivers/net/ethernet/cadence/Kconfig | |
parent | net: macb: remove #if defined(CONFIG_ARCH_AT91) sections (diff) | |
download | linux-93b31f48b3ba84cc5fc310c9765d11ebbeede7b5.tar.xz linux-93b31f48b3ba84cc5fc310c9765d11ebbeede7b5.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/cadence/Kconfig')
0 files changed, 0 insertions, 0 deletions