Add missing .owner field in ns2_pci_phy_ops, which is used for refcounting.
While at it, also makes ns2_pci_phy_ops const as it's never modified.
Signed-off-by: Axel Lin
---
drivers/phy/phy-bcm-ns2-pcie.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/phy/ph
By setting phy_set_drvdata(phy, mdiodev), struct ns2_pci_phy can be
removed.
Signed-off-by: Axel Lin
---
I don't have this h/w. Appreciate if someone can test this patch serial.
drivers/phy/phy-bcm-ns2-pcie.c | 25 +
1 file changed, 5 insertions(+), 20 deletions(-)
Use module_phy_driver macro to simplify the code a bit.
Signed-off-by: Axel Lin
---
drivers/net/phy/aquantia.c | 15 +--
drivers/net/phy/teranetics.c | 15 +--
2 files changed, 2 insertions(+), 28 deletions(-)
diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy