]> git.karo-electronics.de Git - linux-beck.git/commitdiff
phy: bcm-ns2-pcie: Set missing .owner field in ns2_pci_phy_ops
authorAxel Lin <axel.lin@ingics.com>
Tue, 30 Aug 2016 13:54:00 +0000 (21:54 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Sat, 10 Sep 2016 11:18:36 +0000 (16:48 +0530)
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: Axel Lin <axel.lin@ingics.com>
Reviewed-and-tested-by: Jon Mason <jon.mason@broadcom.com>
Reviewed-by: Pramod Kumar <pramodku@broadcom.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-bcm-ns2-pcie.c

index ee6177296ac2ac2ba8ea77b50f9e438a4a48d2b2..4c7d11d2b37849233e34f02860bb3ed9765b011c 100644 (file)
@@ -47,8 +47,9 @@ err:
        return rc;
 }
 
-static struct phy_ops ns2_pci_phy_ops = {
+static const struct phy_ops ns2_pci_phy_ops = {
        .init = ns2_pci_phy_init,
+       .owner = THIS_MODULE,
 };
 
 static int ns2_pci_phy_probe(struct mdio_device *mdiodev)