staging: octeon: repair "fixed-link" support
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Fri, 16 Oct 2020 10:18:57 +0000 (12:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:55 +0000 (11:08 +0100)
commite2f30d7ff0f1efb86600cc8e388f00db16629322
tree41bb683701c822424f60541b54bf0c2e2d299072
parent28f7c57a3ce95ca17cff98cc5af52fe7f9226f3f
staging: octeon: repair "fixed-link" support

commit 179f5dc36b0a1aa31538d7d8823deb65c39847b3 upstream.

The PHYs must be registered once in device probe function, not in device
open callback because it's only possible to register them once.

Fixes: a25e278020bf ("staging: octeon: support fixed-link phys")
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20201016101858.11374-1-alexander.sverdlin@nokia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-mdio.c
drivers/staging/octeon/ethernet.c