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>
Tue, 10 Nov 2020 09:24:01 +0000 (10:24 +0100)
commit797c828f603b85d2475346d58742a6e177f6bf8c
tree04373afecde8af7c4ae173e4ec758d1c8f14266e
parent95b51946057745acb1edc4009ca2b2bca5ab0c0e
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