• Sven Hartge's avatar
    via-velocity: use driver string instead of dev->name before register_netdev() · 07b5f6a6
    Sven Hartge authored
    This patch corrects a message bug in the via-velocity driver which
    bothered me for some time.
    
    The messages printed during device init look like the following:
    
    [    8.486422] eth%d: set value of parameter Wake On Lan options to 0
                      ^^!
    [    8.487340] eth0: VIA Networking Velocity Family Gigabit Ethernet Adapter
    
    Note the unresolved format string.
    
    dev->name is unavailable before register_netdev, so use
    dev_driver_string(&pdev->dev), which is also consistent with other
    drivers.
    
    "char *devname" parameters had to be converted to "const char *devname" to
    be consistent with dev_driver_string return value.
    Signed-off-by: default avatarSven Hartge <sven@svenhartge.de>
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    07b5f6a6
via-velocity.c 89 KB