usbnet: Set parent device early for netdev_printk()
authorBen Hutchings <ben@decadent.org.uk>
Sat, 3 Jul 2010 04:49:02 +0000 (21:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Jul 2010 04:49:02 +0000 (21:49 -0700)
commit0dacca73a3ddefa6cb8a7e0282f938e01faa1a64
treec97d70af9b4178ddf9284a376aa10d8882d84fa8
parent7b00ac51ffcda994ef0839001257be894cc6e5a8
usbnet: Set parent device early for netdev_printk()

netdev_printk() follows the net_device's parent device pointer, so
we must set that earlier than we previously did.

Reported-by: Luís Picciochi Oliveira <pitxyoki@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c