[PATCH v2 1/2] net/macb: unify clock management

2015-03-06 Thread Boris Brezillon
From: Cyrille Pitchen 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 t

[PATCH v2 1/2] net/macb: unify clock management

2015-03-05 Thread Boris Brezillon
From: Cyrille Pitchen 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 t