Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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>

authored by

Axel Lin and committed by
Kishon Vijay Abraham I
5ed0e741 b9d0397f

+2 -1
+2 -1
drivers/phy/phy-bcm-ns2-pcie.c
··· 47 47 return rc; 48 48 } 49 49 50 - static struct phy_ops ns2_pci_phy_ops = { 50 + static const struct phy_ops ns2_pci_phy_ops = { 51 51 .init = ns2_pci_phy_init, 52 + .owner = THIS_MODULE, 52 53 }; 53 54 54 55 static int ns2_pci_phy_probe(struct mdio_device *mdiodev)