Skip to content
Commit 07b5f6a6 authored by Sven Hartge's avatar Sven Hartge Committed by Jeff Garzik
Browse files

via-velocity: use driver string instead of dev->name before register_netdev()



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>
parent 404b12c1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment