]> git.baikalelectronics.ru Git - kernel.git/commit
net: axienet: fix MDIO bus naming
authorRobert Hancock <hancock@sedsystems.ca>
Thu, 6 Jun 2019 22:28:07 +0000 (16:28 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2019 23:24:29 +0000 (16:24 -0700)
commit7d26d87764b9e43a14f272aea7d89321716a7f90
treeeab4d24bd02ec011337ee153d0bc4092347b42fd
parenta9ec6761f9afe2cc93bccf1726a2f29376957470
net: axienet: fix MDIO bus naming

The MDIO bus for this driver was being named using the result of
of_address_to_resource on a node which may not have any resource on it,
but the return value of that call was not checked so it was using some
random value in the bus name. Change to name the MDIO bus based on the
resource start of the actual Ethernet register block.

Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c