Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233439
b: refs/heads/master
c: bb14a1a
h: refs/heads/master
i:
  233437: 23f014a
  233435: addd7a9
  233431: a93925c
  233423: a42923d
  233407: 8d26aa8
v: v3
  • Loading branch information
Casey Leedom authored and David S. Miller committed Feb 15, 2011
1 parent 9d26001 commit 40b527b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98200ec28a66c8db5839ac26e9a895984206b50f
refs/heads/master: bb14a1af86d01f66dc9620725ac00a240331afec
23 changes: 11 additions & 12 deletions trunk/drivers/net/cxgb4vf/cxgb4vf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2488,17 +2488,6 @@ static int __devinit cxgb4vf_pci_probe(struct pci_dev *pdev,
struct port_info *pi;
struct net_device *netdev;

/*
* Vet our module parameters.
*/
if (msi != MSI_MSIX && msi != MSI_MSI) {
dev_err(&pdev->dev, "bad module parameter msi=%d; must be %d"
" (MSI-X or MSI) or %d (MSI)\n", msi, MSI_MSIX,
MSI_MSI);
err = -EINVAL;
goto err_out;
}

/*
* Print our driver banner the first time we're called to initialize a
* device.
Expand Down Expand Up @@ -2802,7 +2791,6 @@ static int __devinit cxgb4vf_pci_probe(struct pci_dev *pdev,
err_disable_device:
pci_disable_device(pdev);

err_out:
return err;
}

Expand Down Expand Up @@ -2915,6 +2903,17 @@ static int __init cxgb4vf_module_init(void)
{
int ret;

/*
* Vet our module parameters.
*/
if (msi != MSI_MSIX && msi != MSI_MSI) {
printk(KERN_WARNING KBUILD_MODNAME
": bad module parameter msi=%d; must be %d"
" (MSI-X or MSI) or %d (MSI)\n",
msi, MSI_MSIX, MSI_MSI);
return -EINVAL;
}

/* Debugfs support is optional, just warn if this fails */
cxgb4vf_debugfs_root = debugfs_create_dir(KBUILD_MODNAME, NULL);
if (!cxgb4vf_debugfs_root)
Expand Down

0 comments on commit 40b527b

Please sign in to comment.