From patchwork Mon Jan 27 11:56:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 23745 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4B0802132B for ; Mon, 27 Jan 2014 12:00:57 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id w17sf11283635vbj.5 for ; Mon, 27 Jan 2014 04:00:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=WgZSF3eLPXHZkTRp9rE8hcXduw57dxjcvPULqasE3wA=; b=ME3CokTnFHjAesFmwUJDmapdaxAuhz1Cjv+Fm3auUdDHzAjSvT+pZG9c8Feggw1Eq5 6re7YHxg/APy78RW0lIg9v23VLLfTUOakKSkKJP4IZsA4bJpU8J/LsGHMaC+Q2CV+pXw f+UNl6Wmd9qLiafnehVu455nyuLk4rgOCuOg1ujNwR2urgTQqSHDemSk0dxwFNO3bZ/J a9P7gUOYnwihfeb30ZfH9jugE7wqdQhWwWT0icuqEMO2y93XSvb0SQ1iT0V1/AH1Q1HI rbRY9mRWkxZS8LD9SKiZrSvL8NzVuKR493Au0kZjpEW5sfeOO1VqBrY9nKTFupA8I6Te nxeA== X-Gm-Message-State: ALoCoQmYPQoFgLiY3bsKjTa8t1ouWwtQjOQcRMxXaiSDNh+7QsU2PY/1W2t4rppDq22VmOhrHl5Z X-Received: by 10.236.142.140 with SMTP id i12mr8941652yhj.10.1390824056934; Mon, 27 Jan 2014 04:00:56 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.87.202 with SMTP id r68ls564473qgd.50.gmail; Mon, 27 Jan 2014 04:00:56 -0800 (PST) X-Received: by 10.52.157.68 with SMTP id wk4mr3078300vdb.19.1390824056807; Mon, 27 Jan 2014 04:00:56 -0800 (PST) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id b20si5018733veu.136.2014.01.27.04.00.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 04:00:56 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id hq11so3395146vcb.28 for ; Mon, 27 Jan 2014 04:00:56 -0800 (PST) X-Received: by 10.58.169.7 with SMTP id aa7mr1142vec.24.1390824056664; Mon, 27 Jan 2014 04:00:56 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp123789vcz; Mon, 27 Jan 2014 04:00:56 -0800 (PST) X-Received: by 10.67.5.233 with SMTP id cp9mr2380763pad.147.1390824055774; Mon, 27 Jan 2014 04:00:55 -0800 (PST) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by mx.google.com with ESMTPS id xk2si11123779pab.303.2014.01.27.04.00.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 04:00:55 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.53 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.53; Received: by mail-pb0-f53.google.com with SMTP id md12so5776915pbc.40 for ; Mon, 27 Jan 2014 04:00:55 -0800 (PST) X-Received: by 10.67.4.169 with SMTP id cf9mr29638950pad.45.1390824055114; Mon, 27 Jan 2014 04:00:55 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id y9sm83553692pas.10.2014.01.27.04.00.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 04:00:54 -0800 (PST) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] [media] radio-keene: Use module_usb_driver Date: Mon, 27 Jan 2014 17:26:02 +0530 Message-Id: <1390823762-14296-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , module_usb_driver eliminates the boilerplate and makes the code simpler. Signed-off-by: Sachin Kamat --- drivers/media/radio/radio-keene.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/media/radio/radio-keene.c b/drivers/media/radio/radio-keene.c index fa3964022b96..3d127825eceb 100644 --- a/drivers/media/radio/radio-keene.c +++ b/drivers/media/radio/radio-keene.c @@ -416,22 +416,5 @@ static struct usb_driver usb_keene_driver = { .reset_resume = usb_keene_resume, }; -static int __init keene_init(void) -{ - int retval = usb_register(&usb_keene_driver); - - if (retval) - pr_err(KBUILD_MODNAME - ": usb_register failed. Error number %d\n", retval); - - return retval; -} - -static void __exit keene_exit(void) -{ - usb_deregister(&usb_keene_driver); -} - -module_init(keene_init); -module_exit(keene_exit); +module_usb_driver(usb_keene_driver);