[RFT][PATCH 2/2] phy: bcm-ns2-pcie: Set missing .owner field in ns2_pci_phy_ops

2016-06-24 Thread Axel Lin
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

[RFT][PATCH 1/2] phy: bcm-ns2-pcie: Get rid of struct ns2_pci_phy

2016-06-24 Thread Axel Lin
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(-)

[PATCH] net: phy: aquantia/teranetics: Convert to use module_phy_driver macro

2015-10-14 Thread Axel Lin
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