nfp: correct name of control BAR define
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 29 Jun 2016 20:55:53 +0000 (21:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jun 2016 13:12:14 +0000 (09:12 -0400)
Spell abbreviation of control as ctrl not crtl.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net.h
drivers/net/ethernet/netronome/nfp/nfp_netvf_main.c

index e744acc18ef40dbfbb98f6f3b1e5d7af29c7ed42..690635660195269fe62d7d078202ac485cdecf87 100644 (file)
@@ -63,7 +63,7 @@
 #define NFP_NET_POLL_TIMEOUT   5
 
 /* Bar allocation */
-#define NFP_NET_CRTL_BAR       0
+#define NFP_NET_CTRL_BAR       0
 #define NFP_NET_Q0_BAR         2
 #define NFP_NET_Q1_BAR         4       /* OBSOLETE */
 
index e2b22b8a20f1343624743013d7f22c1bb226fd43..37abef016a0a82a41c6b3a8f14c0f13cb7d2a2f2 100644 (file)
@@ -124,11 +124,11 @@ static int nfp_netvf_pci_probe(struct pci_dev *pdev,
         * first NFP_NET_CFG_BAR_SZ of the BAR.  This keeps the code
         * the identical for PF and VF drivers.
         */
-       ctrl_bar = ioremap_nocache(pci_resource_start(pdev, NFP_NET_CRTL_BAR),
+       ctrl_bar = ioremap_nocache(pci_resource_start(pdev, NFP_NET_CTRL_BAR),
                                   NFP_NET_CFG_BAR_SZ);
        if (!ctrl_bar) {
                dev_err(&pdev->dev,
-                       "Failed to map resource %d\n", NFP_NET_CRTL_BAR);
+                       "Failed to map resource %d\n", NFP_NET_CTRL_BAR);
                err = -EIO;
                goto err_pci_regions;
        }