[PATCH v4 3/4] 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

[PATCH v4 3/4] net/macb: unify clock management

2015-03-06 Thread Boris Brezillon
From: Cyrille Pitchen cyrille.pitc...@atmel.com 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