@@ -508,33 +508,6 @@ static int dsa_switch_resume(struct dsa_switch *ds)
508
508
}
509
509
#endif
510
510
511
-
512
- /* link polling *************************************************************/
513
- static void dsa_link_poll_work (struct work_struct * ugly )
514
- {
515
- struct dsa_switch_tree * dst ;
516
- int i ;
517
-
518
- dst = container_of (ugly , struct dsa_switch_tree , link_poll_work );
519
-
520
- for (i = 0 ; i < dst -> pd -> nr_chips ; i ++ ) {
521
- struct dsa_switch * ds = dst -> ds [i ];
522
-
523
- if (ds != NULL && ds -> drv -> poll_link != NULL )
524
- ds -> drv -> poll_link (ds );
525
- }
526
-
527
- mod_timer (& dst -> link_poll_timer , round_jiffies (jiffies + HZ ));
528
- }
529
-
530
- static void dsa_link_poll_timer (unsigned long _dst )
531
- {
532
- struct dsa_switch_tree * dst = (void * )_dst ;
533
-
534
- schedule_work (& dst -> link_poll_work );
535
- }
536
-
537
-
538
511
/* platform driver init and cleanup *****************************************/
539
512
static int dev_is_class (struct device * dev , void * class )
540
513
{
@@ -877,8 +850,6 @@ static int dsa_setup_dst(struct dsa_switch_tree *dst, struct net_device *dev,
877
850
}
878
851
879
852
dst -> ds [i ] = ds ;
880
- if (ds -> drv -> poll_link != NULL )
881
- dst -> link_poll_needed = 1 ;
882
853
883
854
++ configured ;
884
855
}
@@ -897,15 +868,6 @@ static int dsa_setup_dst(struct dsa_switch_tree *dst, struct net_device *dev,
897
868
wmb ();
898
869
dev -> dsa_ptr = (void * )dst ;
899
870
900
- if (dst -> link_poll_needed ) {
901
- INIT_WORK (& dst -> link_poll_work , dsa_link_poll_work );
902
- init_timer (& dst -> link_poll_timer );
903
- dst -> link_poll_timer .data = (unsigned long )dst ;
904
- dst -> link_poll_timer .function = dsa_link_poll_timer ;
905
- dst -> link_poll_timer .expires = round_jiffies (jiffies + HZ );
906
- add_timer (& dst -> link_poll_timer );
907
- }
908
-
909
871
return 0 ;
910
872
}
911
873
@@ -972,11 +934,6 @@ static void dsa_remove_dst(struct dsa_switch_tree *dst)
972
934
{
973
935
int i ;
974
936
975
- if (dst -> link_poll_needed )
976
- del_timer_sync (& dst -> link_poll_timer );
977
-
978
- flush_work (& dst -> link_poll_work );
979
-
980
937
for (i = 0 ; i < dst -> pd -> nr_chips ; i ++ ) {
981
938
struct dsa_switch * ds = dst -> ds [i ];
982
939
0 commit comments