]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/misc/eeepc-laptop.c
net: only invoke dev->change_rx_flags when device is UP
[linux-2.6-omap-h63xx.git] / drivers / misc / eeepc-laptop.c
index 9e8d79e7e9f4cb4b105840ce71420e435820edd5..facdb9893c84c322dbb65f47e2a7bf8de3c69685 100644 (file)
@@ -553,9 +553,9 @@ static void eeepc_hwmon_exit(void)
        hwmon = eeepc_hwmon_device;
        if (!hwmon)
                return ;
-       hwmon_device_unregister(hwmon);
        sysfs_remove_group(&hwmon->kobj,
                           &hwmon_attribute_group);
+       hwmon_device_unregister(hwmon);
        eeepc_hwmon_device = NULL;
 }