]> git.baikalelectronics.ru Git - kernel.git/commit
sh_eth: split 'sh_eth_netdev_ops'
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Wed, 12 Jun 2013 20:55:34 +0000 (00:55 +0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2013 21:15:44 +0000 (14:15 -0700)
commit220830cb613577526e5c00e491fd5581a4cfb3ab
treef11bb662780beb5f9d6f1b0e1e959f07702c8314
parentbcacb67f368c2642cc227d7b7fb45deeca44e1a7
sh_eth: split 'sh_eth_netdev_ops'

Commit b3a16c8d1ee2d899ed654a08c9d8d860a12c351d (sh_eth: remove SH_ETH_HAS_TSU)
removes 'const' from 'sh_eth_netdev_ops'  and modifies it in case TSU registers
are present. I've originally suggested to Iwamatsu-san to split  this structure
in two instead and afterwards Dave M. suggested doing the same.
Split 'sh_eth_netdev_ops_tsu' from 'sh_eth_netdev_ops', making both 'const', and
assigning 'ndev->detdev_ops'  depending on the presence of TSU registers.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c