Re: [PATCH 0/2] Provide a driver for the Apple Magic Mouse - opps

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ed Tomlinson
Date: Monday, February 15, 2010 - 5:44 am

On Monday 15 February 2010 02:11:46 Dmitry Torokhov wrote:

How about this?  It applies on top of yesterdays patch.

Ed

---
diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c
index 7d252d2..46fdeee 100644
--- a/drivers/hid/hid-magicmouse.c
+++ b/drivers/hid/hid-magicmouse.c
@@ -430,8 +430,8 @@ static void magicmouse_remove(struct hid_device *hdev)
 {
 	struct magicmouse_sc *msc;
 	msc = hid_get_drvdata(hdev);
-	input_unregister_device(msc->input);
 	hid_hw_stop(hdev);
+	input_unregister_device(msc->input);
 	kfree(msc);
 }
 

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/3] HID: Implement Wacom quirk in the kernel, Jiri Kosina, (Fri Jan 29, 7:20 am)
Re: [PATCH 0/3] HID: make raw output callback more flexible, Marcel Holtmann, (Sat Jan 30, 7:13 am)
[PATCH 2/3] HID: Implement Wacom quirk in the kernel, Jiri Kosina, (Wed Feb 3, 5:49 am)
Re: [PATCH 2/3] HID: Implement Wacom quirk in the kernel, Marcel Holtmann, (Wed Feb 3, 7:19 am)
[PATCH 0/2] Provide a driver for the Apple Magic Mouse, Michael Poole, (Tue Feb 9, 6:10 am)
[PATCH 1/2] Provide a driver for the Apple Magic Mouse, Michael Poole, (Tue Feb 9, 6:11 am)
Re: [PATCH 0/2] Provide a driver for the Apple Magic Mouse, Justin P. Mattock, (Tue Feb 9, 2:37 pm)
[PATCH 1/1] Enable xy scrolling for Apple Magic Mouse, Ed Tomlinson, (Sun Feb 14, 3:24 pm)
Re: [PATCH 1/1] Enable xy scrolling for Apple Magic Mouse, Michael Poole, (Sun Feb 14, 3:51 pm)
Re: [PATCH 1/1] Enable xy scrolling for Apple Magic Mouse, Dmitry Torokhov, (Mon Feb 15, 12:18 am)
Re: [PATCH 0/2] Provide a driver for the Apple Magic Mouse ..., Ed Tomlinson, (Mon Feb 15, 5:44 am)