From: Axel Lin Date: Tue, 30 Aug 2016 13:54:00 +0000 (+0800) Subject: phy: bcm-ns2-pcie: Set missing .owner field in ns2_pci_phy_ops X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5ed0e7410451f1148d7655461cae7ed23aafd244;p=linux-beck.git 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 Reviewed-and-tested-by: Jon Mason Reviewed-by: Pramod Kumar Signed-off-by: Kishon Vijay Abraham I --- diff --git a/drivers/phy/phy-bcm-ns2-pcie.c b/drivers/phy/phy-bcm-ns2-pcie.c index ee6177296ac2..4c7d11d2b378 100644 --- a/drivers/phy/phy-bcm-ns2-pcie.c +++ b/drivers/phy/phy-bcm-ns2-pcie.c @@ -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)