net: phy: Add support for all targets which requires MANUAL_RELOC
authorMichal Simek <michal.simek@xilinx.com>
Wed, 13 May 2015 11:40:40 +0000 (13:40 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 19 May 2015 18:33:21 +0000 (13:33 -0500)
commitabbfcbe58eefc1accda5dd120fcfe58d244b63dd
tree9b4c9401b5c8b8f261f8078f3d046dd6e68b943d
parent793ea947703899c36a51c30e477466c49a8e9657
net: phy: Add support for all targets which requires MANUAL_RELOC

Targets with CONFIG_NEEDS_MANUAL_RELOC do not use REL/RELA
relocation (mostly only GOT) where functions aray are not
updated. This patch is fixing function pointers passed to phy_register
function.
This patch was tested on Microblaze architecture.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/phy.c