From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752903AbcHMBpB (ORCPT ); Fri, 12 Aug 2016 21:45:01 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36255 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752666AbcHMBo7 (ORCPT ); Fri, 12 Aug 2016 21:44:59 -0400 From: Axel Lin To: Kishon Vijay Abraham I Cc: Pramod Kumar , Andrew Lunn , Jon Mason , linux-kernel@vger.kernel.org, Axel Lin Subject: [RESEND][PATCH 2/2] phy: bcm-ns2-pcie: Set missing .owner field in ns2_pci_phy_ops Date: Sat, 13 Aug 2016 09:43:50 +0800 Message-Id: <1471052630-13356-2-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1471052630-13356-1-git-send-email-axel.lin@ingics.com> References: <1471052630-13356-1-git-send-email-axel.lin@ingics.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- This was sent on http://www.spinics.net/lists/netdev/msg383514.html drivers/phy/phy-bcm-ns2-pcie.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/phy/phy-bcm-ns2-pcie.c b/drivers/phy/phy-bcm-ns2-pcie.c index ee61772..4c7d11d 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) -- 2.5.0