From patchwork Mon Feb 15 12:44:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ed Tomlinson X-Patchwork-Id: 79392 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1FCk4O7007675 for ; Mon, 15 Feb 2010 12:46:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751829Ab0BOMo6 (ORCPT ); Mon, 15 Feb 2010 07:44:58 -0500 Received: from mail001.aei.ca ([206.123.6.130]:38790 "EHLO mail001.aei.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751660Ab0BOMo5 (ORCPT ); Mon, 15 Feb 2010 07:44:57 -0500 Received: (qmail 12775 invoked by uid 89); 15 Feb 2010 12:44:56 -0000 Received: by simscan 1.2.0 ppid: 12754, pid: 12767, t: 0.0070s scanners: regex: 1.2.0 attach: 1.2.0 Received: from mail002.aei.ca (HELO mail002.contact.net) (206.123.6.132) by mail001.aei.ca with (DHE-RSA-AES256-SHA encrypted) SMTP; 15 Feb 2010 12:44:56 -0000 Received: (qmail 8016 invoked by uid 89); 15 Feb 2010 12:44:56 -0000 Received: by simscan 1.2.0 ppid: 7985, pid: 8005, t: 0.8337s scanners: regex: 1.2.0 attach: 1.2.0 clamav: 0.95.3/m:51 spam: 3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) X-Spam-Level: X-Spam-Status: No, hits=-3.0 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.0 Received: from dsl-62-152.aei.ca (HELO grover.localnet) (edt@aei.ca@216.221.62.152) by mail.aei.ca with ESMTPA; 15 Feb 2010 12:44:55 -0000 From: Ed Tomlinson To: Dmitry Torokhov Subject: Re: [PATCH 0/2] Provide a driver for the Apple Magic Mouse - opps Date: Mon, 15 Feb 2010 07:44:51 -0500 User-Agent: KMail/1.13.0 (Linux/2.6.32.8-crc; KDE/4.4.0; x86_64; ; ) Cc: Jiri Kosina , Michael Poole , linux-input@vger.kernel.org, Marcel Holtmann , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org References: <201002140922.42014.edt@aei.ca> <20100215071145.GA9135@core.coreip.homeip.net> In-Reply-To: <20100215071145.GA9135@core.coreip.homeip.net> MIME-Version: 1.0 Message-Id: <201002150744.51730.edt@aei.ca> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 15 Feb 2010 12:46:04 +0000 (UTC) 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); }