]> git.baikalelectronics.ru Git - kernel.git/commit
ax88796: start_xmit fix using net_device_ops
authorMagnus Damm <damm@igel.co.jp>
Thu, 15 Jan 2009 05:05:55 +0000 (21:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jan 2009 05:05:55 +0000 (21:05 -0800)
commitb0ccaf54ec0055f1ef0c07f29bfcb8fc5fc50096
tree1f3c86720e7d4665576d269d6354931da2182ead
parentc1300422c5f4db817b6f4782001efd5dde8b79ae
ax88796: start_xmit fix using net_device_ops

This patch hooks up the start_xmit/tx_timeout/get_stats callbacks
in the ax88796 driver since they no longer are installed by the
lib8390 code. Without this patch the function dev_hard_start_xmit()
crashes due to a start_xmit callback with the value NULL.

While at it, update the ax88796 driver to make use of use of struct
net_device_ops.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ax88796.c