linux-hardened/drivers/net/ethernet/broadcom/genet
Florian Fainelli 7d5d3075b5 net: bcmgenet: Remove checks on clock handles
Instead of multiplying the number of checks for IS_ERR(priv->clk),
simply NULLify the 'struct clk' pointer which is something the Linux
common clock framework perfectly deals with and does early return for
each and every single clk_* API functions.

Having every single function check for !IS_ERR(priv->clk) is both
redundant and error prone, as it turns out, we were doing it for the
main GENET clock: priv->clk, but not for the Wake-on-LAN or EEE clock,
so let's just be consistent here.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Petri Gynther <pgynther@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-07-26 17:21:56 -07:00
..
bcmgenet.c net: bcmgenet: Remove checks on clock handles 2015-07-26 17:21:56 -07:00
bcmgenet.h net: bcmgenet: Remove init parameter from bcmgenet_mii_config 2015-07-20 20:48:14 -07:00
bcmgenet_wol.c net: bcmgenet: properly disable password matching 2015-03-05 21:15:21 -05:00
bcmmii.c net: bcmgenet: Remove init parameter from bcmgenet_mii_config 2015-07-20 20:48:14 -07:00
Makefile net: bcmgenet: add Wake-on-LAN support code 2014-07-21 16:04:31 -07:00