diff options
Diffstat (limited to 'drivers/hwmon/applesmc.c')
-rw-r--r-- | drivers/hwmon/applesmc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c index 571f49e80277..4879125b4cdc 100644 --- a/drivers/hwmon/applesmc.c +++ b/drivers/hwmon/applesmc.c | |||
@@ -125,8 +125,8 @@ static const int debug; | |||
125 | static struct platform_device *pdev; | 125 | static struct platform_device *pdev; |
126 | static s16 rest_x; | 126 | static s16 rest_x; |
127 | static s16 rest_y; | 127 | static s16 rest_y; |
128 | static struct device *hwmon_dev; | ||
128 | static struct input_polled_dev *applesmc_idev; | 129 | static struct input_polled_dev *applesmc_idev; |
129 | static struct class_device *hwmon_class_dev; | ||
130 | 130 | ||
131 | /* Indicates whether this computer has an accelerometer. */ | 131 | /* Indicates whether this computer has an accelerometer. */ |
132 | static unsigned int applesmc_accelerometer; | 132 | static unsigned int applesmc_accelerometer; |
@@ -1264,9 +1264,9 @@ static int __init applesmc_init(void) | |||
1264 | goto out_light_wq; | 1264 | goto out_light_wq; |
1265 | } | 1265 | } |
1266 | 1266 | ||
1267 | hwmon_class_dev = hwmon_device_register(&pdev->dev); | 1267 | hwmon_dev = hwmon_device_register(&pdev->dev); |
1268 | if (IS_ERR(hwmon_class_dev)) { | 1268 | if (IS_ERR(hwmon_dev)) { |
1269 | ret = PTR_ERR(hwmon_class_dev); | 1269 | ret = PTR_ERR(hwmon_dev); |
1270 | goto out_light_ledclass; | 1270 | goto out_light_ledclass; |
1271 | } | 1271 | } |
1272 | 1272 | ||
@@ -1308,7 +1308,7 @@ out: | |||
1308 | 1308 | ||
1309 | static void __exit applesmc_exit(void) | 1309 | static void __exit applesmc_exit(void) |
1310 | { | 1310 | { |
1311 | hwmon_device_unregister(hwmon_class_dev); | 1311 | hwmon_device_unregister(hwmon_dev); |
1312 | if (applesmc_light) { | 1312 | if (applesmc_light) { |
1313 | led_classdev_unregister(&applesmc_backlight); | 1313 | led_classdev_unregister(&applesmc_backlight); |
1314 | destroy_workqueue(applesmc_led_wq); | 1314 | destroy_workqueue(applesmc_led_wq); |