From patchwork Wed Dec 16 08:56:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 7860331 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7DB849F387 for ; Wed, 16 Dec 2015 08:56:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A43F02026C for ; Wed, 16 Dec 2015 08:56:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC69F2025B for ; Wed, 16 Dec 2015 08:56:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754523AbbLPI4p (ORCPT ); Wed, 16 Dec 2015 03:56:45 -0500 Received: from mail-pf0-f180.google.com ([209.85.192.180]:36368 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754500AbbLPI4o (ORCPT ); Wed, 16 Dec 2015 03:56:44 -0500 Received: by mail-pf0-f180.google.com with SMTP id o64so9009696pfb.3 for ; Wed, 16 Dec 2015 00:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:content-type:mime-version :content-transfer-encoding; bh=j27RyHs8oay7jCKthJ/bMLfPAN/5DSvIIJDsW9VZ/CQ=; b=l2hG7z3rdXyv6vECaDteOtpoLISXM6sXSzK8Eqdtu5Q1QxQ67oC7KUVGx8ymbi6eZF xFWko8KsBTXrep8SzBU9iEoCGe837HGgrPA7ophHPUbCJO0uznQyo2hJ8BIyKxZhj42b arBEt5uUZRa1Uru5i1/8R36CVm6DmTLNFuC2L7APaNHz1SNMN0lJTlUWR+0i4sUkZ/4S iVNs9TETSno1fUmvFPuWTUzfexUwMl1lrQA2aWmvp8t/5k8B9P2lhBcQumHcbt4jPHE3 W0zq8lxyO4xlH7RVPSSz4Z2xEPPk4pEP0lz35uqTuXljSn49+tXhw2GU9WQufNtR9xtm uiHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=j27RyHs8oay7jCKthJ/bMLfPAN/5DSvIIJDsW9VZ/CQ=; b=BiNIUv17Q3JyyvEvw3Db8A/sNbL/SOWiKghTi2uDU+g9ATtoG8ePEH4EH4vVV0/wmM SXFG7aWWAa1S3U4Ltww1YKTrHp++7PADYfeWfWu+5CUYiwN9RBdOWyeBaL+YnojIU/jy USIlblLEKWeJHezzV4evLMfGqIgZSdKK01BlCQ2VlUD06Qj9apWKepphpQoPI2flNqKo +nM/VeZcxL0Iw7bGBhlwQYFaRmESQlW/9T8XNyb6EHlvPkrkeQlCntNMOiRd6Zmatjko SuKs/DuU7KX7IpOCvq0kJatHP+ZoqBs3mii0nhbCgGzRbzryrWFEPYYf6TrXaRZ4s2x9 2x3g== X-Gm-Message-State: ALoCoQn5R0Jyr3f2951s6NkpuGRX3/769RT4agxy7JcJZwDfeNHMyi9+dac/R48EVO8ScQqD44R4ckUF9R5lZxJIClmP2/fJjg== X-Received: by 10.98.79.77 with SMTP id d74mr3718982pfb.44.1450256203880; Wed, 16 Dec 2015 00:56:43 -0800 (PST) Received: from phoenix (218-164-31-14.dynamic.hinet.net. [218.164.31.14]) by smtp.gmail.com with ESMTPSA id k15sm3142755pfb.37.2015.12.16.00.56.41 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Dec 2015 00:56:42 -0800 (PST) Message-ID: <1450256199.17220.1.camel@ingics.com> Subject: [PATCH] HID: corsair: Convert to use module_hid_driver From: Axel Lin To: Jiri Kosina Cc: =?ISO-8859-1?Q?Cl=E9ment?= Vuchener , Benjamin Tissoires , linux-input@vger.kernel.org Date: Wed, 16 Dec 2015 16:56:39 +0800 X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Axel Lin Acked-by: Clément Vuchener --- drivers/hid/hid-corsair.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/hid/hid-corsair.c b/drivers/hid/hid-corsair.c index bcefb9e..5855196 100644 --- a/drivers/hid/hid-corsair.c +++ b/drivers/hid/hid-corsair.c @@ -655,18 +655,7 @@ static struct hid_driver corsair_driver = { .input_mapping = corsair_input_mapping, }; -static int __init corsair_init(void) -{ - return hid_register_driver(&corsair_driver); -} - -static void corsair_exit(void) -{ - hid_unregister_driver(&corsair_driver); -} - -module_init(corsair_init); -module_exit(corsair_exit); +module_hid_driver(corsair_driver); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Clement Vuchener");