X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmisc%2Feeepc-laptop.c;h=facdb9893c84c322dbb65f47e2a7bf8de3c69685;hb=cc556c5c92a45763e23015a31efb27005a6132fa;hp=9e8d79e7e9f4cb4b105840ce71420e435820edd5;hpb=8a392625b665c676a77c62f8608d10ff430bcb83;p=linux-2.6 diff --git a/drivers/misc/eeepc-laptop.c b/drivers/misc/eeepc-laptop.c index 9e8d79e7e9..facdb9893c 100644 --- a/drivers/misc/eeepc-laptop.c +++ b/drivers/misc/eeepc-laptop.c @@ -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; }