OSDN Git Service

sh_eth: get R8A7740 Rx descriptor word 0 shift out of #ifdef
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 13 Jun 2013 18:12:45 +0000 (22:12 +0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jun 2013 00:02:52 +0000 (17:02 -0700)
commitac8025a643a0e0beb81f3f37ca693364c6b77858
treee68c66bd30ef37c6bc37c98ee8577b89dc57b491
parentc8bbe37aa60a3ef694df65fed4e905bd4b1bd73c
sh_eth: get R8A7740 Rx descriptor word 0 shift out of #ifdef

The only R8A7740 specific #ifdef hindering  ARM multiplatform build is  left in
sh_eth_rx(): it covers the code shifting Rx buffer descriptor word 0 by 16. Get
rid of the #ifdef by adding 'shift_rd0' field to the  'struct sh_eth_cpu_data',
making the shift dependent on it, and setting it to 1 for the R8A7740 case...

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
drivers/net/ethernet/renesas/sh_eth.h