|
@@ -213,7 +213,7 @@ int __init ams_init(void)
|
|
|
return -ENODEV;
|
|
|
}
|
|
|
|
|
|
-void ams_exit(void)
|
|
|
+void ams_sensor_detach(void)
|
|
|
{
|
|
|
/* Remove input device */
|
|
|
ams_input_exit();
|
|
@@ -221,9 +221,6 @@ void ams_exit(void)
|
|
|
/* Remove attributes */
|
|
|
device_remove_file(&ams_info.of_dev->dev, &dev_attr_current);
|
|
|
|
|
|
- /* Shut down implementation */
|
|
|
- ams_info.exit();
|
|
|
-
|
|
|
/* Flush interrupt worker
|
|
|
*
|
|
|
* We do this after ams_info.exit(), because an interrupt might
|
|
@@ -239,6 +236,12 @@ void ams_exit(void)
|
|
|
pmf_unregister_irq_client(&ams_freefall_client);
|
|
|
}
|
|
|
|
|
|
+static void __exit ams_exit(void)
|
|
|
+{
|
|
|
+ /* Shut down implementation */
|
|
|
+ ams_info.exit();
|
|
|
+}
|
|
|
+
|
|
|
MODULE_AUTHOR("Stelian Pop, Michael Hanselmann");
|
|
|
MODULE_DESCRIPTION("Apple Motion Sensor driver");
|
|
|
MODULE_LICENSE("GPL");
|