Commit 5ed0e741 authored by Axel Lin's avatar Axel Lin Committed by Kishon Vijay Abraham I

phy: bcm-ns2-pcie: Set missing .owner field in ns2_pci_phy_ops

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 get modified.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Reviewed-and-tested-by: default avatarJon Mason <jon.mason@broadcom.com>
Reviewed-by: default avatarPramod Kumar <pramodku@broadcom.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent b9d0397f
...@@ -47,8 +47,9 @@ static int ns2_pci_phy_init(struct phy *p) ...@@ -47,8 +47,9 @@ static int ns2_pci_phy_init(struct phy *p)
return rc; return rc;
} }
static struct phy_ops ns2_pci_phy_ops = { static const struct phy_ops ns2_pci_phy_ops = {
.init = ns2_pci_phy_init, .init = ns2_pci_phy_init,
.owner = THIS_MODULE,
}; };
static int ns2_pci_phy_probe(struct mdio_device *mdiodev) static int ns2_pci_phy_probe(struct mdio_device *mdiodev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment