Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26251
b: refs/heads/master
c: 9fb81ce
h: refs/heads/master
i:
  26249: 7d2439d
  26247: ac8509b
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Apr 27, 2006
1 parent ad31c78 commit bd6e2fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 658ad5e001a17be5fadaa8d57d1aa7f7c62628c1
refs/heads/master: 9fb81ce63671f9743517f628dac935269f2581a9
5 changes: 2 additions & 3 deletions trunk/drivers/usb/gadget/net2280.c
Original file line number Diff line number Diff line change
Expand Up @@ -2833,13 +2833,13 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id)
}

/* alloc, and start init */
dev = kmalloc (sizeof *dev, SLAB_KERNEL);
dev = kzalloc (sizeof *dev, SLAB_KERNEL);
if (dev == NULL){
retval = -ENOMEM;
goto done;
}

memset (dev, 0, sizeof *dev);
pci_set_drvdata (pdev, dev);
spin_lock_init (&dev->lock);
dev->pdev = pdev;
dev->gadget.ops = &net2280_ops;
Expand Down Expand Up @@ -2952,7 +2952,6 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id)
dev->chiprev = get_idx_reg (dev->regs, REG_CHIPREV) & 0xffff;

/* done */
pci_set_drvdata (pdev, dev);
INFO (dev, "%s\n", driver_desc);
INFO (dev, "irq %s, pci mem %p, chip rev %04x\n",
bufp, base, dev->chiprev);
Expand Down

0 comments on commit bd6e2fe

Please sign in to comment.