diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2013-06-19 18:22:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-19 20:01:39 -0400 |
commit | 8f80899665c4baca5fe18e919a18db818c3e11fa (patch) | |
tree | da96efbbe01456249ace1d7b7a7930afd8d0fed8 | |
parent | 3719109d61ca96746c733538ec776d02a6952640 (diff) |
sh_eth: remove 'tx_error_check' field of 'struct sh_eth_cpu_data'
The 'tx_error_check' field of 'struct sh_eth_cpu_data' is write-only, so remove
it along with the DEFAULT_TX_ERROR_CHECK macro.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 14 | ||||
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.h | 3 |
2 files changed, 0 insertions, 17 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 5233edab2dd5..9a8b24e513ca 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c | |||
@@ -384,7 +384,6 @@ static struct sh_eth_cpu_data r8a777x_data = { | |||
384 | .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO, | 384 | .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO, |
385 | .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RDE | | 385 | .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RDE | |
386 | EESR_RFRMER | EESR_TFE | EESR_TDE | EESR_ECI, | 386 | EESR_RFRMER | EESR_TFE | EESR_TDE | EESR_ECI, |
387 | .tx_error_check = EESR_TWB | EESR_TABT | EESR_TDE | EESR_TFE, | ||
388 | 387 | ||
389 | .apr = 1, | 388 | .apr = 1, |
390 | .mpr = 1, | 389 | .mpr = 1, |
@@ -420,7 +419,6 @@ static struct sh_eth_cpu_data sh7724_data = { | |||
420 | .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO, | 419 | .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO, |
421 | .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RDE | | 420 | .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RDE | |
422 | EESR_RFRMER | EESR_TFE | EESR_TDE | EESR_ECI, | 421 | EESR_RFRMER | EESR_TFE | EESR_TDE | EESR_ECI, |
423 | .tx_error_check = EESR_TWB | EESR_TABT | EESR_TDE | EESR_TFE, | ||
424 | 422 | ||
425 | .apr = 1, | 423 | .apr = 1, |
426 | .mpr = 1, | 424 | .mpr = 1, |
@@ -457,7 +455,6 @@ static struct sh_eth_cpu_data sh7757_data = { | |||
457 | .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO, | 455 | .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO, |
458 | .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RDE | | 456 | .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RDE | |
459 | EESR_RFRMER | EESR_TFE | EESR_TDE | EESR_ECI, | 457 | EESR_RFRMER | EESR_TFE | EESR_TDE | EESR_ECI, |
460 | .tx_error_check = EESR_TWB | EESR_TABT | EESR_TDE | EESR_TFE, | ||
461 | 458 | ||
462 | .irq_flags = IRQF_SHARED, | 459 | .irq_flags = IRQF_SHARED, |
463 | .apr = 1, | 460 | .apr = 1, |
@@ -527,8 +524,6 @@ static struct sh_eth_cpu_data sh7757_data_giga = { | |||
527 | .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | \ | 524 | .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | \ |
528 | EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE | \ | 525 | EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE | \ |
529 | EESR_ECI, | 526 | EESR_ECI, |
530 | .tx_error_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_TDE | \ | ||
531 | EESR_TFE, | ||
532 | .fdr_value = 0x0000072f, | 527 | .fdr_value = 0x0000072f, |
533 | .rmcr_value = 0x00000001, | 528 | .rmcr_value = 0x00000001, |
534 | 529 | ||
@@ -587,8 +582,6 @@ static struct sh_eth_cpu_data sh7734_data = { | |||
587 | .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | \ | 582 | .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | \ |
588 | EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE | \ | 583 | EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE | \ |
589 | EESR_ECI, | 584 | EESR_ECI, |
590 | .tx_error_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_TDE | \ | ||
591 | EESR_TFE, | ||
592 | 585 | ||
593 | .apr = 1, | 586 | .apr = 1, |
594 | .mpr = 1, | 587 | .mpr = 1, |
@@ -616,8 +609,6 @@ static struct sh_eth_cpu_data sh7763_data = { | |||
616 | .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | \ | 609 | .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | \ |
617 | EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE | \ | 610 | EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE | \ |
618 | EESR_ECI, | 611 | EESR_ECI, |
619 | .tx_error_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_TDE | \ | ||
620 | EESR_TFE, | ||
621 | 612 | ||
622 | .apr = 1, | 613 | .apr = 1, |
623 | .mpr = 1, | 614 | .mpr = 1, |
@@ -655,8 +646,6 @@ static struct sh_eth_cpu_data r8a7740_data = { | |||
655 | .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | \ | 646 | .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | \ |
656 | EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE | \ | 647 | EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE | \ |
657 | EESR_ECI, | 648 | EESR_ECI, |
658 | .tx_error_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_TDE | \ | ||
659 | EESR_TFE, | ||
660 | 649 | ||
661 | .apr = 1, | 650 | .apr = 1, |
662 | .mpr = 1, | 651 | .mpr = 1, |
@@ -706,9 +695,6 @@ static void sh_eth_set_default_cpu_data(struct sh_eth_cpu_data *cd) | |||
706 | 695 | ||
707 | if (!cd->eesr_err_check) | 696 | if (!cd->eesr_err_check) |
708 | cd->eesr_err_check = DEFAULT_EESR_ERR_CHECK; | 697 | cd->eesr_err_check = DEFAULT_EESR_ERR_CHECK; |
709 | |||
710 | if (!cd->tx_error_check) | ||
711 | cd->tx_error_check = DEFAULT_TX_ERROR_CHECK; | ||
712 | } | 698 | } |
713 | 699 | ||
714 | static int sh_eth_check_reset(struct net_device *ndev) | 700 | static int sh_eth_check_reset(struct net_device *ndev) |
diff --git a/drivers/net/ethernet/renesas/sh_eth.h b/drivers/net/ethernet/renesas/sh_eth.h index 029744f77af6..87c7ae9e10cc 100644 --- a/drivers/net/ethernet/renesas/sh_eth.h +++ b/drivers/net/ethernet/renesas/sh_eth.h | |||
@@ -261,8 +261,6 @@ enum EESR_BIT { | |||
261 | #define DEFAULT_EESR_ERR_CHECK (EESR_TWB | EESR_TABT | EESR_RABT | \ | 261 | #define DEFAULT_EESR_ERR_CHECK (EESR_TWB | EESR_TABT | EESR_RABT | \ |
262 | EESR_RDE | EESR_RFRMER | EESR_ADE | \ | 262 | EESR_RDE | EESR_RFRMER | EESR_ADE | \ |
263 | EESR_TFE | EESR_TDE | EESR_ECI) | 263 | EESR_TFE | EESR_TDE | EESR_ECI) |
264 | #define DEFAULT_TX_ERROR_CHECK (EESR_TWB | EESR_TABT | EESR_ADE | EESR_TDE | \ | ||
265 | EESR_TFE) | ||
266 | 264 | ||
267 | /* EESIPR */ | 265 | /* EESIPR */ |
268 | enum DMAC_IM_BIT { | 266 | enum DMAC_IM_BIT { |
@@ -468,7 +466,6 @@ struct sh_eth_cpu_data { | |||
468 | /* interrupt checking mask */ | 466 | /* interrupt checking mask */ |
469 | unsigned long tx_check; | 467 | unsigned long tx_check; |
470 | unsigned long eesr_err_check; | 468 | unsigned long eesr_err_check; |
471 | unsigned long tx_error_check; | ||
472 | 469 | ||
473 | /* hardware features */ | 470 | /* hardware features */ |
474 | unsigned long irq_flags; /* IRQ configuration flags */ | 471 | unsigned long irq_flags; /* IRQ configuration flags */ |