]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/net/ethernet/ti/davinci_emac.c
net: davinci_emac: fix dev_err use at probe
authorJohan Hovold <jhovold@gmail.com>
Thu, 26 May 2011 04:37:32 +0000 (04:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 May 2011 18:30:51 +0000 (14:30 -0400)
commit240b26284ac84f06ed0bc89c363f022e21b84b98
treec2dba9d29f5f9322093edb5b98f5cf881fc62f76
parent12e6c419b48c4d1803918e5d952ebee07bae7465
net: davinci_emac: fix dev_err use at probe

Use platform device rather than net device in dev_err calls before net
device has been registered to avoid messages such as

(null): DaVinci EMAC: Failed to get EMAC clock

Also replace remaining printks in probe with dev_{err,warn}.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/davinci_emac.c