Skip to content

Commit

Permalink
smc91x: fix nowait printout
Browse files Browse the repository at this point in the history
Commit c4f0e76 added nowait platform
data support. The printout code was however not updated, so the value
of SMC_NOWAIT is still used. This patch makes sure that nowait is printed
accordingly to platform data.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Magnus Damm authored and Jeff Garzik committed Sep 24, 2008
1 parent 523a609 commit d6bc372
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/smc91x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,8 @@ static int __init smc_probe(struct net_device *dev, void __iomem *ioaddr,
if (dev->dma != (unsigned char)-1)
printk(" DMA %d", dev->dma);

printk("%s%s\n", nowait ? " [nowait]" : "",
printk("%s%s\n",
lp->cfg.flags & SMC91X_NOWAIT ? " [nowait]" : "",
THROTTLE_TX_PKTS ? " [throttle_tx]" : "");

if (!is_valid_ether_addr(dev->dev_addr)) {
Expand Down

0 comments on commit d6bc372

Please sign in to comment.