From patchwork Wed Jul 4 06:33:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9814 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 74AA523E56 for ; Wed, 4 Jul 2012 06:45:37 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 37B34A18C2A for ; Wed, 4 Jul 2012 06:45:37 +0000 (UTC) Received: by ggnf1 with SMTP id f1so6655677ggn.11 for ; Tue, 03 Jul 2012 23:45:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=NCs+t7g0zJRKosRGkY/DtX4882A9bF0ZUv+yg4NA4Lw=; b=lSWRa0fxJKRZzz2V6w7ylTlvHW1geqDFTSgaGg8uCwrekVWnzCo0WvhJoBO6TmhKZA /9aK6JUUC5J9Y5GnRuPOlz/ZWBOlgHDrvcntiCV+GOzpAj4eX2ktrSE7WZHaRRJemgwd I4eHekBfWNXg536XRvnRmioyHKRDVSXIDJ6+UqC03ZMvhQZkFrZP/HdVLYdTRbYVW/UT 16ksyxGYsGN+PZfA0/Mttt5ao6kXktljQytb2oF2qmcg6uqMrbPizHxohW+7sSkOe1A0 WVvTEEKZWMJDacD2Afe2M9r7ru2BXQyddJu2+SFSvcMmrvakVpwRaIeHxk9WnhNFyWbZ oaIg== Received: by 10.42.210.193 with SMTP id gl1mr10401828icb.57.1341384336405; Tue, 03 Jul 2012 23:45:36 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp49989ibb; Tue, 3 Jul 2012 23:45:35 -0700 (PDT) Received: by 10.68.221.106 with SMTP id qd10mr15564877pbc.42.1341384335125; Tue, 03 Jul 2012 23:45:35 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id tg7si31214273pbc.9.2012.07.03.23.45.34 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 Jul 2012 23:45:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by pbbrr4 with SMTP id rr4so12497613pbb.37 for ; Tue, 03 Jul 2012 23:45:34 -0700 (PDT) Received: by 10.68.236.102 with SMTP id ut6mr8181239pbc.113.1341384334774; Tue, 03 Jul 2012 23:45:34 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ms1sm17115930pbb.63.2012.07.03.23.45.31 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 Jul 2012 23:45:34 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: t.stanislaws@samsung.com, mchehab@infradead.org, s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] [media] s5p-tv: Use module_i2c_driver in sii9234_drv.c file Date: Wed, 4 Jul 2012 12:03:15 +0530 Message-Id: <1341383595-4386-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQnV++hkoHB0TbpKdM1+XKQFZ4kvBmvMn7U4vrdcggqNV5/LcGaBcvPISz+tLi0lptURUIqx module_i2c_driver makes the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Sachin Kamat Acked-by: Tomasz Stanislawski --- drivers/media/video/s5p-tv/sii9234_drv.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/drivers/media/video/s5p-tv/sii9234_drv.c b/drivers/media/video/s5p-tv/sii9234_drv.c index 0f31ecc..6d348f9 100644 --- a/drivers/media/video/s5p-tv/sii9234_drv.c +++ b/drivers/media/video/s5p-tv/sii9234_drv.c @@ -419,14 +419,4 @@ static struct i2c_driver sii9234_driver = { .id_table = sii9234_id, }; -static int __init sii9234_init(void) -{ - return i2c_add_driver(&sii9234_driver); -} -module_init(sii9234_init); - -static void __exit sii9234_exit(void) -{ - i2c_del_driver(&sii9234_driver); -} -module_exit(sii9234_exit); +module_i2c_driver(sii9234_driver);