From patchwork Tue Sep 29 01:24:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Huewe X-Patchwork-Id: 50473 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8T1PFM7003946 for ; Tue, 29 Sep 2009 01:25:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753817AbZI2BY4 (ORCPT ); Mon, 28 Sep 2009 21:24:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753892AbZI2BY4 (ORCPT ); Mon, 28 Sep 2009 21:24:56 -0400 Received: from mail.gmx.net ([213.165.64.20]:55069 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753834AbZI2BYz (ORCPT ); Mon, 28 Sep 2009 21:24:55 -0400 Received: (qmail invoked by alias); 29 Sep 2009 01:24:58 -0000 Received: from dslb-088-064-083-245.pools.arcor-ip.net (EHLO [192.168.0.104]) [88.64.83.245] by mail.gmx.net (mp059) with SMTP; 29 Sep 2009 03:24:58 +0200 X-Authenticated: #12255092 X-Provags-ID: V01U2FsdGVkX1/ooIBSUTroVHDuDvUBwUdaH9caUJ7tGVZzkaWO5c AAlygOEG53w86b From: Peter =?iso-8859-1?q?H=FCwe?= To: Jiri Kosina Subject: [PATCH] hid: adding __init/__exit macros to twinhan.c Date: Tue, 29 Sep 2009 03:24:55 +0200 User-Agent: KMail/1.9.10 Cc: Bruno Premont , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200909290324.56042.PeterHuewe@gmx.de> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.58 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Peter Huewe Trivial patch which adds the __init/__exit macros to the module_init/ module_exit functions of the twinhan driver in hid. Jiri, I guess this time you can decide wether it's the hid or the trivial tree ;) - thanks jiri for all your patience and work! linux version v2.6.32-rc1 - linus git tree, Di 29. Sep 01:10:18 CEST 2009 Signed-off-by: Peter Huewe --- -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/hid/hid-twinhan.c b/drivers/hid/hid-twinhan.c index b05f602..c40afc5 100644 --- a/drivers/hid/hid-twinhan.c +++ b/drivers/hid/hid-twinhan.c @@ -132,12 +132,12 @@ static struct hid_driver twinhan_driver = { .input_mapping = twinhan_input_mapping, }; -static int twinhan_init(void) +static int __init twinhan_init(void) { return hid_register_driver(&twinhan_driver); } -static void twinhan_exit(void) +static void __exit twinhan_exit(void) { hid_unregister_driver(&twinhan_driver); }