]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: phy: Only call phy_init() on systems needing manual relocation
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 19 Mar 2023 17:03:17 +0000 (18:03 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 7 Apr 2023 12:18:51 +0000 (14:18 +0200)
commit9461d73de988964b51a796f69ce0d9424599ebd9
tree5358b977bfb265a01f17b306cd7a302f72d6d17e
parentc878e70bebef706f09e647b16954c14cee81939c
net: phy: Only call phy_init() on systems needing manual relocation

The phy_init() is now used only to perform manual relocation of PHY
driver callbacks. Wrap it in ifdeffery and only call it on systems
which still require manual relocation, i.e. m68k .

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Tested-by: Michal Simek <michal.simek@amd.com> #microblaze (MANUAL_RELOC)
drivers/net/phy/phy.c
net/eth_common.c