Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

smc91x: fix nowait printout

Commit c4f0e76747e80578a8f7fddd82fd0ce8127bd2f8 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>

authored by

Magnus Damm and committed by
Jeff Garzik
d6bc372e 523a6094

+2 -1
+2 -1
drivers/net/smc91x.c
··· 1961 1961 if (dev->dma != (unsigned char)-1) 1962 1962 printk(" DMA %d", dev->dma); 1963 1963 1964 - printk("%s%s\n", nowait ? " [nowait]" : "", 1964 + printk("%s%s\n", 1965 + lp->cfg.flags & SMC91X_NOWAIT ? " [nowait]" : "", 1965 1966 THROTTLE_TX_PKTS ? " [throttle_tx]" : ""); 1966 1967 1967 1968 if (!is_valid_ether_addr(dev->dev_addr)) {