diff options
author | Joe Perches <joe@perches.com> | 2010-08-23 14:20:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-25 18:35:43 -0400 |
commit | c061b18df0f1fe3f50fe451dbbdc9ede3c19701a (patch) | |
tree | 91508aff083ab7a93d1e7f3b6eb933059d1a2776 /drivers/net/mac8390.c | |
parent | 31018e068edb9eed740bec5cf14802c3c676c9ee (diff) |
drivers/net: Remove address use from assignments of function pointers
"foo = &function" is more commonly written "foo = function"
Done with coccinelle script:
// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>
drivers/net/tehuti.c used a function and struct with the
same name, the function was renamed.
Compile tested x86 only.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mac8390.c')
-rw-r--r-- | drivers/net/mac8390.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/drivers/net/mac8390.c b/drivers/net/mac8390.c index 3832fa4961dd..f84f5e6ededb 100644 --- a/drivers/net/mac8390.c +++ b/drivers/net/mac8390.c | |||
@@ -562,19 +562,19 @@ static int __init mac8390_initdev(struct net_device *dev, | |||
562 | 562 | ||
563 | case ACCESS_16: | 563 | case ACCESS_16: |
564 | /* 16 bit card, register map is reversed */ | 564 | /* 16 bit card, register map is reversed */ |
565 | ei_status.reset_8390 = &mac8390_no_reset; | 565 | ei_status.reset_8390 = mac8390_no_reset; |
566 | ei_status.block_input = &slow_sane_block_input; | 566 | ei_status.block_input = slow_sane_block_input; |
567 | ei_status.block_output = &slow_sane_block_output; | 567 | ei_status.block_output = slow_sane_block_output; |
568 | ei_status.get_8390_hdr = &slow_sane_get_8390_hdr; | 568 | ei_status.get_8390_hdr = slow_sane_get_8390_hdr; |
569 | ei_status.reg_offset = back4_offsets; | 569 | ei_status.reg_offset = back4_offsets; |
570 | break; | 570 | break; |
571 | 571 | ||
572 | case ACCESS_32: | 572 | case ACCESS_32: |
573 | /* 32 bit card, register map is reversed */ | 573 | /* 32 bit card, register map is reversed */ |
574 | ei_status.reset_8390 = &mac8390_no_reset; | 574 | ei_status.reset_8390 = mac8390_no_reset; |
575 | ei_status.block_input = &sane_block_input; | 575 | ei_status.block_input = sane_block_input; |
576 | ei_status.block_output = &sane_block_output; | 576 | ei_status.block_output = sane_block_output; |
577 | ei_status.get_8390_hdr = &sane_get_8390_hdr; | 577 | ei_status.get_8390_hdr = sane_get_8390_hdr; |
578 | ei_status.reg_offset = back4_offsets; | 578 | ei_status.reg_offset = back4_offsets; |
579 | access_bitmode = 1; | 579 | access_bitmode = 1; |
580 | break; | 580 | break; |
@@ -586,19 +586,19 @@ static int __init mac8390_initdev(struct net_device *dev, | |||
586 | * but overwrite system memory when run at 32 bit. | 586 | * but overwrite system memory when run at 32 bit. |
587 | * so we run them all at 16 bit. | 587 | * so we run them all at 16 bit. |
588 | */ | 588 | */ |
589 | ei_status.reset_8390 = &mac8390_no_reset; | 589 | ei_status.reset_8390 = mac8390_no_reset; |
590 | ei_status.block_input = &slow_sane_block_input; | 590 | ei_status.block_input = slow_sane_block_input; |
591 | ei_status.block_output = &slow_sane_block_output; | 591 | ei_status.block_output = slow_sane_block_output; |
592 | ei_status.get_8390_hdr = &slow_sane_get_8390_hdr; | 592 | ei_status.get_8390_hdr = slow_sane_get_8390_hdr; |
593 | ei_status.reg_offset = back4_offsets; | 593 | ei_status.reg_offset = back4_offsets; |
594 | break; | 594 | break; |
595 | 595 | ||
596 | case MAC8390_CABLETRON: | 596 | case MAC8390_CABLETRON: |
597 | /* 16 bit card, register map is short forward */ | 597 | /* 16 bit card, register map is short forward */ |
598 | ei_status.reset_8390 = &mac8390_no_reset; | 598 | ei_status.reset_8390 = mac8390_no_reset; |
599 | ei_status.block_input = &slow_sane_block_input; | 599 | ei_status.block_input = slow_sane_block_input; |
600 | ei_status.block_output = &slow_sane_block_output; | 600 | ei_status.block_output = slow_sane_block_output; |
601 | ei_status.get_8390_hdr = &slow_sane_get_8390_hdr; | 601 | ei_status.get_8390_hdr = slow_sane_get_8390_hdr; |
602 | ei_status.reg_offset = fwrd2_offsets; | 602 | ei_status.reg_offset = fwrd2_offsets; |
603 | break; | 603 | break; |
604 | 604 | ||
@@ -606,19 +606,19 @@ static int __init mac8390_initdev(struct net_device *dev, | |||
606 | case MAC8390_KINETICS: | 606 | case MAC8390_KINETICS: |
607 | /* 16 bit memory, register map is forward */ | 607 | /* 16 bit memory, register map is forward */ |
608 | /* dayna and similar */ | 608 | /* dayna and similar */ |
609 | ei_status.reset_8390 = &mac8390_no_reset; | 609 | ei_status.reset_8390 = mac8390_no_reset; |
610 | ei_status.block_input = &dayna_block_input; | 610 | ei_status.block_input = dayna_block_input; |
611 | ei_status.block_output = &dayna_block_output; | 611 | ei_status.block_output = dayna_block_output; |
612 | ei_status.get_8390_hdr = &dayna_get_8390_hdr; | 612 | ei_status.get_8390_hdr = dayna_get_8390_hdr; |
613 | ei_status.reg_offset = fwrd4_offsets; | 613 | ei_status.reg_offset = fwrd4_offsets; |
614 | break; | 614 | break; |
615 | 615 | ||
616 | case MAC8390_INTERLAN: | 616 | case MAC8390_INTERLAN: |
617 | /* 16 bit memory, register map is forward */ | 617 | /* 16 bit memory, register map is forward */ |
618 | ei_status.reset_8390 = &interlan_reset; | 618 | ei_status.reset_8390 = interlan_reset; |
619 | ei_status.block_input = &slow_sane_block_input; | 619 | ei_status.block_input = slow_sane_block_input; |
620 | ei_status.block_output = &slow_sane_block_output; | 620 | ei_status.block_output = slow_sane_block_output; |
621 | ei_status.get_8390_hdr = &slow_sane_get_8390_hdr; | 621 | ei_status.get_8390_hdr = slow_sane_get_8390_hdr; |
622 | ei_status.reg_offset = fwrd4_offsets; | 622 | ei_status.reg_offset = fwrd4_offsets; |
623 | break; | 623 | break; |
624 | 624 | ||