sky2: use dev_err for error reports
authorStephen Hemminger <shemminger@linux-foundation.org>
Tue, 6 Feb 2007 18:45:40 +0000 (10:45 -0800)
committerJeff Garzik <jeff@garzik.org>
Wed, 7 Feb 2007 23:50:40 +0000 (18:50 -0500)
commitb02a92586dca362b0b76ad527b91bd44ce58ece5
tree4c41505159c75398c7db2d7c2aced191a9190f2f
parente3173832d7be8f62a181a1888a65f0a3dc58c2e0
sky2: use dev_err for error reports

Use the standard dev_xxx functions instead of printk directly for
error reports. Fix a bug where the initialization would return 0
if allocation of network device failed.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/sky2.c