]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: adjust fixed_phy_register() return value
authorPetri Gynther <pgynther@google.com>
Mon, 6 Oct 2014 18:38:30 +0000 (11:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Oct 2014 17:06:45 +0000 (13:06 -0400)
commit98d66a35b5be1cf64db84f5e3af8f965390fa966
treee9d32e03bc599e39fb55b1b79269cbc08ae3ba20
parent5ac2c849d29ad1805d03aaccf9cabf8118f5e91b
net: phy: adjust fixed_phy_register() return value

Adjust fixed_phy_register() to return struct phy_device *, so that
it becomes easy to use fixed PHYs without device tree support:

  phydev = fixed_phy_register(PHY_POLL, &fixed_phy_status, NULL);
  fixed_phy_set_link_update(phydev, fixed_phy_link_update);
  phy_connect_direct(netdev, phydev, handler_fn, phy_interface);

This change is a prerequisite for modifying bcmgenet driver to work
without a device tree on Broadcom's MIPS-based 7xxx platforms.

Signed-off-by: Petri Gynther <pgynther@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed.c
drivers/of/of_mdio.c
include/linux/phy_fixed.h