From patchwork Fri Sep 20 08:32:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915631 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 76F809F1BF for ; Fri, 20 Sep 2013 08:32:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5E94F203E9 for ; Fri, 20 Sep 2013 08:32:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B983203B6 for ; Fri, 20 Sep 2013 08:32:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754214Ab3ITIcD (ORCPT ); Fri, 20 Sep 2013 04:32:03 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:46800 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754156Ab3ITIb7 (ORCPT ); Fri, 20 Sep 2013 04:31:59 -0400 Received: by mail-pa0-f47.google.com with SMTP id kl13so448113pab.6 for ; Fri, 20 Sep 2013 01:31:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oadtGIICxRqc6C4Xeb4blpXZOmtqrRqno2SuC3/D+bg=; b=eEbE/2X4Dl829AXamz1xJ98IgwIw+VXun1MJh+PXr7tX0e9z6s/bPjm6NunupeiM0A OVUXW39BaNJn/KbU9atrZJSxYPDhiWQl3ik1C8fWYaVYsGcLmUGTAWXJvGjdg+ZJue9S 4/y4SngovamhB/oy6F7PGOXIobN9kmy0eNYP8PfOLJpwYEAJHgCSLbeb928ohvrMd6Rc 5zFMR7rdIAf6hYWl1HqVDI8mTMJcoMAGZfGn6+bDAAXeLqjiGIQ7+4GAJv1aoSRxYwRI yxPUSspnb+rYMpkwUMTkx3uPrYik4GQeBT+pWqBzaTnQgs8s56treNZBWgapitpb32a+ qiPw== X-Gm-Message-State: ALoCoQnqd336ubW8QwP0qteQcH96qn3p9SK9umAwDR2pv4e1r+gC018Ka2Hc5yUag5KbuPyMg07l X-Received: by 10.68.218.6 with SMTP id pc6mr1898274pbc.187.1379665919293; Fri, 20 Sep 2013 01:31:59 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id py4sm14273729pbc.14.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Sep 2013 01:31:59 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: m.chehab@samsung.com, Gerd Knorr Subject: [PATCH 3/3] [media] pci: cx88-video: Use module_pci_driver Date: Fri, 20 Sep 2013 14:02:07 +0530 Message-Id: <1379665927-18497-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1379665927-18497-1-git-send-email-sachin.kamat@linaro.org> References: <1379665927-18497-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 module_pci_driver removes some boilerplate and makes code simpler. Signed-off-by: Sachin Kamat Cc: Gerd Knorr --- drivers/media/pci/cx88/cx88-video.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/media/pci/cx88/cx88-video.c b/drivers/media/pci/cx88/cx88-video.c index d3c2c7f..1aed764 100644 --- a/drivers/media/pci/cx88/cx88-video.c +++ b/drivers/media/pci/cx88/cx88-video.c @@ -2038,17 +2038,4 @@ static struct pci_driver cx8800_pci_driver = { #endif }; -static int __init cx8800_init(void) -{ - printk(KERN_INFO "cx88/0: cx2388x v4l2 driver version %s loaded\n", - CX88_VERSION); - return pci_register_driver(&cx8800_pci_driver); -} - -static void __exit cx8800_fini(void) -{ - pci_unregister_driver(&cx8800_pci_driver); -} - -module_init(cx8800_init); -module_exit(cx8800_fini); +module_pci_driver(cx8800_pci_driver);