]> git.baikalelectronics.ru Git - kernel.git/commit
net: ll_temac: Use of_property_read_u32 instead of open-coding it
authorTobias Klauser <tklauser@distanz.ch>
Wed, 23 Sep 2015 07:20:02 +0000 (09:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Sep 2015 21:30:00 +0000 (14:30 -0700)
commitac349053722c3b5283a6815b51338cfb35cacbfc
tree0a70231066500ea989a6213d1ad6924c2bfdc3e8
parent687d6f7d6a481ceec042e1e61eee303d7c9a1a56
net: ll_temac: Use of_property_read_u32 instead of open-coding it

Use of_property_read_u32 to read the "clock-frequency" property instead
of using of_get_property with return value checks.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Reviewed-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac_mdio.c