Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203673
b: refs/heads/master
c: 1ff2190
h: refs/heads/master
i:
  203671: a9e08b8
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Jul 22, 2010
1 parent 0968157 commit f4dbe47
Show file tree
Hide file tree
Showing 4 changed files with 8 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: b77026b391f4f43ca148cf6c55a93f7487ff6ed8
refs/heads/master: 1ff219068c0e032a6fd64c45bd69f3bc7374feb6
2 changes: 2 additions & 0 deletions trunk/drivers/net/stmmac/dwmac1000_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ struct mac_device_info *dwmac1000_setup(unsigned long ioaddr)
((uid & 0x0000ff00) >> 8), (uid & 0x000000ff));

mac = kzalloc(sizeof(const struct mac_device_info), GFP_KERNEL);
if (!mac)
return NULL;

mac->mac = &dwmac1000_ops;
mac->dma = &dwmac1000_dma_ops;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/stmmac/dwmac100_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ struct mac_device_info *dwmac100_setup(unsigned long ioaddr)
struct mac_device_info *mac;

mac = kzalloc(sizeof(const struct mac_device_info), GFP_KERNEL);
if (!mac)
return NULL;

pr_info("\tDWMAC100\n");

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/stmmac/stmmac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1558,15 +1558,15 @@ static int stmmac_mac_device_setup(struct net_device *dev)
else
device = dwmac100_setup(ioaddr);

if (!device)
return -ENOMEM;

if (priv->enh_desc) {
device->desc = &enh_desc_ops;
pr_info("\tEnhanced descriptor structure\n");
} else
device->desc = &ndesc_ops;

if (!device)
return -ENOMEM;

priv->hw = device;

priv->wolenabled = priv->hw->pmt; /* PMT supported */
Expand Down

0 comments on commit f4dbe47

Please sign in to comment.