From patchwork Fri Jul 10 05:32:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 493967 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id AE8221402C4 for ; Sat, 11 Jul 2015 14:12:49 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ZDm9d-0006Vt-3p; Sat, 11 Jul 2015 04:12:45 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ZDQvo-0007BM-5J; Fri, 10 Jul 2015 05:33:04 +0000 X-ACL-Warn: Received: from mailout1.w1.samsung.com ([210.118.77.11]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1ZDQvm-0004ap-Pv; Fri, 10 Jul 2015 05:33:04 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NR900490BEV8M30@mailout1.w1.samsung.com>; Fri, 10 Jul 2015 06:32:55 +0100 (BST) X-AuditID: cbfec7f4-f79c56d0000012ee-d1-559f5906bb6a Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id B5.7C.04846.6095F955; Fri, 10 Jul 2015 06:32:54 +0100 (BST) Received: from localhost.localdomain ([10.252.80.64]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NR900EXGBEKCS30@eusync2.samsung.com>; Fri, 10 Jul 2015 06:32:54 +0100 (BST) From: Krzysztof Kozlowski To: Corey Minyard , Peter Huewe , Marcel Selhorst , Jason Gunthorpe , Jarkko Sakkinen , Christophe Ricard , Krzysztof Kozlowski , openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, tpmdd-devel@lists.sourceforge.net Date: Fri, 10 Jul 2015 14:32:29 +0900 Message-id: <1436506349-28917-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1436506349-28917-1-git-send-email-k.kozlowski@samsung.com> References: <1436506349-28917-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCLMWRmVeSWpSXmKPExsVy+t/xK7pskfNDDXZ0GlqsaZjFZLFp+UF2 i+83TC1evzC0uLxrDptFV387o8WeB08YLd7u+8lu0fL7DZPF5v6brA5cHpeveHvsnHWX3ePD xziPeScDPXYv+Mzk8X1HL6NH35ZVjB6PLyZ7fN4kF8AZxWWTkpqTWZZapG+XwJWx888t1oK7 YhXXdvQxNTD2CHcxcnJICJhIdB15xA5hi0lcuLeerYuRi0NIYCmjxNclK6Cc/4wSE95dYQWp YhMwlti8fAkbiC0isIJZYumpoC5GDg5hARuJH5d4QMIsAqoS0y6fByvnFXCXmLD1BhPEAjmJ k8cmg8U5BTwkth+bCrZYCKhmUd8qtgmMPAsYGVYxiqaWJhcUJ6XnGuoVJ+YWl+al6yXn525i hITdlx2Mi49ZHWIU4GBU4uENYJsfKsSaWFZcmXuIUYKDWUmEl18CKMSbklhZlVqUH19UmpNa fIhRmoNFSZx37q73IUIC6YklqdmpqQWpRTBZJg5OqQZG9R6muRHsqhwJn/x+HEqfc/CU3IkM tVV3rBau2uX/1nVm2yFZ4cmTFN1uf1l5WMZH6sWdaZoC53YU1/LVrmM28FkXqv419mp44fkA Q++s2exzLjNxcVq0pYk8+Kc/MWSmelJwx9yIdM7fioorrNPPSa87aBeiVZ1vq6V6Lkw+y+yi EVd28G0lluKMREMt5qLiRAASSxrNNwIAAA== X-Spam-Score: -0.5 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.6 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.1 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1ZDQvm-0004ap-Pv X-Mailman-Approved-At: Sat, 11 Jul 2015 04:12:44 +0000 Subject: [tpmdd-devel] [PATCH] char: Drop owner assignment from i2c_driver X-BeenThere: tpmdd-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Tpm Device Driver maintainance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: tpmdd-devel-bounces@lists.sourceforge.net i2c_driver does not need to set an owner because i2c_register_driver() will set it. Signed-off-by: Krzysztof Kozlowski --- The coccinelle script which generated the patch was sent here: http://www.spinics.net/lists/kernel/msg2029903.html --- drivers/char/ipmi/ipmi_ssif.c | 1 - drivers/char/tpm/st33zp24/i2c.c | 1 - drivers/char/tpm/tpm_i2c_atmel.c | 1 - drivers/char/tpm/tpm_i2c_infineon.c | 1 - drivers/char/tpm/tpm_i2c_nuvoton.c | 1 - 5 files changed, 5 deletions(-) diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c index b043d8d45823..003a4ab3b660 100644 --- a/drivers/char/ipmi/ipmi_ssif.c +++ b/drivers/char/ipmi/ipmi_ssif.c @@ -1950,7 +1950,6 @@ MODULE_DEVICE_TABLE(i2c, ssif_id); static struct i2c_driver ssif_i2c_driver = { .class = I2C_CLASS_HWMON, .driver = { - .owner = THIS_MODULE, .name = DEVICE_NAME }, .probe = ssif_probe, diff --git a/drivers/char/tpm/st33zp24/i2c.c b/drivers/char/tpm/st33zp24/i2c.c index ad1ee180e0c2..309d2767c6a1 100644 --- a/drivers/char/tpm/st33zp24/i2c.c +++ b/drivers/char/tpm/st33zp24/i2c.c @@ -258,7 +258,6 @@ static SIMPLE_DEV_PM_OPS(st33zp24_i2c_ops, st33zp24_pm_suspend, static struct i2c_driver st33zp24_i2c_driver = { .driver = { - .owner = THIS_MODULE, .name = TPM_ST33_I2C, .pm = &st33zp24_i2c_ops, .of_match_table = of_match_ptr(of_st33zp24_i2c_match), diff --git a/drivers/char/tpm/tpm_i2c_atmel.c b/drivers/char/tpm/tpm_i2c_atmel.c index 7a0ca78ad3c6..8dfb88b9739c 100644 --- a/drivers/char/tpm/tpm_i2c_atmel.c +++ b/drivers/char/tpm/tpm_i2c_atmel.c @@ -217,7 +217,6 @@ static struct i2c_driver i2c_atmel_driver = { .remove = i2c_atmel_remove, .driver = { .name = I2C_DRIVER_NAME, - .owner = THIS_MODULE, .pm = &i2c_atmel_pm_ops, .of_match_table = of_match_ptr(i2c_atmel_of_match), }, diff --git a/drivers/char/tpm/tpm_i2c_infineon.c b/drivers/char/tpm/tpm_i2c_infineon.c index 33c5f360ab01..63d5d22e9e60 100644 --- a/drivers/char/tpm/tpm_i2c_infineon.c +++ b/drivers/char/tpm/tpm_i2c_infineon.c @@ -711,7 +711,6 @@ static struct i2c_driver tpm_tis_i2c_driver = { .remove = tpm_tis_i2c_remove, .driver = { .name = "tpm_i2c_infineon", - .owner = THIS_MODULE, .pm = &tpm_tis_i2c_ops, .of_match_table = of_match_ptr(tpm_tis_i2c_of_match), }, diff --git a/drivers/char/tpm/tpm_i2c_nuvoton.c b/drivers/char/tpm/tpm_i2c_nuvoton.c index 9d42b7d78e50..847f1597fe9b 100644 --- a/drivers/char/tpm/tpm_i2c_nuvoton.c +++ b/drivers/char/tpm/tpm_i2c_nuvoton.c @@ -641,7 +641,6 @@ static struct i2c_driver i2c_nuvoton_driver = { .remove = i2c_nuvoton_remove, .driver = { .name = I2C_DRIVER_NAME, - .owner = THIS_MODULE, .pm = &i2c_nuvoton_pm_ops, .of_match_table = of_match_ptr(i2c_nuvoton_of_match), },