kernel: add driver for the RTL8366RB switch
[openwrt.git] / target / linux / generic-2.6 / files / drivers / leds / ledtrig-netdev.c
index fac3571..8dba8e6 100644 (file)
@@ -46,7 +46,7 @@
  *   link: LED's normal state reflects whether the link is up (has carrier) or not
  *   tx:   LED blinks on transmitted data
  *   rx:   LED blinks on receive data
- * 
+ *
  * Some suggestions:
  *
  *  Simple link status LED:
@@ -307,7 +307,7 @@ done:
 static void netdev_trig_timer(unsigned long arg)
 {
        struct led_netdev_data *trigger_data = (struct led_netdev_data *)arg;
-       struct net_device_stats *dev_stats;
+       const struct net_device_stats *dev_stats;
        unsigned new_activity;
 
        write_lock(&trigger_data->lock);
@@ -318,7 +318,7 @@ static void netdev_trig_timer(unsigned long arg)
                goto no_restart;
        }
 
-       dev_stats = trigger_data->net_dev->get_stats(trigger_data->net_dev);
+       dev_stats = dev_get_stats(trigger_data->net_dev);
        new_activity =
                ((trigger_data->mode & MODE_TX) ? dev_stats->tx_packets : 0) +
                ((trigger_data->mode & MODE_RX) ? dev_stats->rx_packets : 0);
This page took 0.024317 seconds and 4 git commands to generate.