diff options
| author | Axel Lin <axel.lin@ingics.com> | 2016-08-30 09:54:00 -0400 |
|---|---|---|
| committer | Kishon Vijay Abraham I <kishon@ti.com> | 2016-09-10 07:18:36 -0400 |
| commit | 5ed0e7410451f1148d7655461cae7ed23aafd244 (patch) | |
| tree | d5c2ffa60a5299d17947d23ff7a63654bc9f286d /drivers/phy | |
| parent | b9d0397fefb3487ed121d45c9ecf4a21d4ecd54c (diff) | |
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>
Diffstat (limited to 'drivers/phy')
| -rw-r--r-- | drivers/phy/phy-bcm-ns2-pcie.c | 3 |
1 files changed, 2 insertions, 1 deletions
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: | |||
| 47 | return rc; | 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 | .init = ns2_pci_phy_init, | 51 | .init = ns2_pci_phy_init, |
| 52 | .owner = THIS_MODULE, | ||
| 52 | }; | 53 | }; |
| 53 | 54 | ||
| 54 | static int ns2_pci_phy_probe(struct mdio_device *mdiodev) | 55 | static int ns2_pci_phy_probe(struct mdio_device *mdiodev) |
