From patchwork Thu Nov 19 03:59:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 7654851 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EBF86BF90C for ; Thu, 19 Nov 2015 04:00:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2C076204AB for ; Thu, 19 Nov 2015 04:00:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 470E42041C for ; Thu, 19 Nov 2015 04:00:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933738AbbKSD7s (ORCPT ); Wed, 18 Nov 2015 22:59:48 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:35610 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933261AbbKSD7r (ORCPT ); Wed, 18 Nov 2015 22:59:47 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NY1008OON3KY810@mailout3.w1.samsung.com>; Thu, 19 Nov 2015 03:59:44 +0000 (GMT) X-AuditID: cbfec7f4-f79026d00000418a-da-564d492f1bdc Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 1A.D5.16778.F294D465; Thu, 19 Nov 2015 03:59:43 +0000 (GMT) Received: from localhost.localdomain ([10.252.80.64]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NY100I6PN3D6R20@eusync1.samsung.com>; Thu, 19 Nov 2015 03:59:43 +0000 (GMT) From: Krzysztof Kozlowski To: =?UTF-8?q?Cl=C3=A9ment=20Perrochaud?= , Charles Gorand , Lauro Ramos Venancio , Aloisio Almeida Jr , linux-nfc@lists.01.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RESEND PATCH] nfc: Drop owner assignment from i2c_driver Date: Thu, 19 Nov 2015 12:59:39 +0900 Message-id: <1447905579-30897-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPJMWRmVeSWpSXmKPExsVy+t/xy7r6nr5hBs2TjSwWb7/HYrGjfR+7 xbIle5gtXr8wtNi2eAqzxeVdc9gs5mzYzG7xZsUddgcOj9O7V7B6dM/+x+Ixd+YvNo++LasY PT5vkgtgjeKySUnNySxLLdK3S+DKmLR7PlvBcqGKSZ+vMzYwruLvYuTkkBAwkZi14SIzhC0m ceHeerYuRi4OIYGljBKHXrxgh3D+M0qsmfefHaSKTcBYYvPyJWBVIgIHmCTmHnnHCJJgFjCU +PnuD1ARB4ewgJPElcfeIGEWAVWJ2zePMoOEeQXcJV62hEMsk5M4eWwy6wRG7gWMDKsYRVNL kwuKk9JzDfWKE3OLS/PS9ZLzczcxQoLlyw7GxcesDjEKcDAq8fBuOOUTJsSaWFZcmXuIUYKD WUmEt+wSUIg3JbGyKrUoP76oNCe1+BCjNAeLkjjv3F3vQ4QE0hNLUrNTUwtSi2CyTBycUg2M iSLs8gx+145d8l5c/M3zQVKh8hRmiR0b5lp+ipD/MPGLdAfn8ci332S0TlWulmi8s0/2k67q g/tJ7cvlV9malazjSHw0o/aiSbcUy+Qb2+euSuM05tcO71vEveTubNFVLUs7Fh7xl8m8If9o vfj7xH2S2bkqS4TviKQveDB1v6Fg3/Hq7XfDlViKMxINtZiLihMB+rDN/BICAAA= Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 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/nfc/nxp-nci/i2c.c | 1 - drivers/nfc/pn544/i2c.c | 1 - drivers/nfc/st-nci/i2c.c | 1 - drivers/nfc/st21nfca/i2c.c | 1 - 4 files changed, 4 deletions(-) diff --git a/drivers/nfc/nxp-nci/i2c.c b/drivers/nfc/nxp-nci/i2c.c index df4333c7ee0f..9ddeff62bd12 100644 --- a/drivers/nfc/nxp-nci/i2c.c +++ b/drivers/nfc/nxp-nci/i2c.c @@ -446,7 +446,6 @@ MODULE_DEVICE_TABLE(acpi, acpi_id); static struct i2c_driver nxp_nci_i2c_driver = { .driver = { .name = NXP_NCI_I2C_DRIVER_NAME, - .owner = THIS_MODULE, .acpi_match_table = ACPI_PTR(acpi_id), .of_match_table = of_match_ptr(of_nxp_nci_i2c_match), }, diff --git a/drivers/nfc/pn544/i2c.c b/drivers/nfc/pn544/i2c.c index fa75c53f3fa5..a095523309cf 100644 --- a/drivers/nfc/pn544/i2c.c +++ b/drivers/nfc/pn544/i2c.c @@ -1162,7 +1162,6 @@ MODULE_DEVICE_TABLE(of, of_pn544_i2c_match); static struct i2c_driver pn544_hci_i2c_driver = { .driver = { .name = PN544_HCI_I2C_DRIVER_NAME, - .owner = THIS_MODULE, .of_match_table = of_match_ptr(of_pn544_i2c_match), .acpi_match_table = ACPI_PTR(pn544_hci_i2c_acpi_match), }, diff --git a/drivers/nfc/st-nci/i2c.c b/drivers/nfc/st-nci/i2c.c index 15e3ce2d274c..9c369ff3a52b 100644 --- a/drivers/nfc/st-nci/i2c.c +++ b/drivers/nfc/st-nci/i2c.c @@ -370,7 +370,6 @@ MODULE_DEVICE_TABLE(of, of_st_nci_i2c_match); static struct i2c_driver st_nci_i2c_driver = { .driver = { - .owner = THIS_MODULE, .name = ST_NCI_I2C_DRIVER_NAME, .of_match_table = of_match_ptr(of_st_nci_i2c_match), }, diff --git a/drivers/nfc/st21nfca/i2c.c b/drivers/nfc/st21nfca/i2c.c index a98da33e680a..9e628de6a154 100644 --- a/drivers/nfc/st21nfca/i2c.c +++ b/drivers/nfc/st21nfca/i2c.c @@ -681,7 +681,6 @@ MODULE_DEVICE_TABLE(of, of_st21nfca_i2c_match); static struct i2c_driver st21nfca_hci_i2c_driver = { .driver = { - .owner = THIS_MODULE, .name = ST21NFCA_HCI_I2C_DRIVER_NAME, .of_match_table = of_match_ptr(of_st21nfca_i2c_match), },