From patchwork Fri Jul 10 06:25:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6762231 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 02B5B9F38C for ; Fri, 10 Jul 2015 06:26:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 241ED207BF for ; Fri, 10 Jul 2015 06:26:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9F2D6207BB for ; Fri, 10 Jul 2015 06:25:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752798AbbGJGZ6 (ORCPT ); Fri, 10 Jul 2015 02:25:58 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:9362 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753084AbbGJGZy (ORCPT ); Fri, 10 Jul 2015 02:25:54 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NR900DUWDV4ED30@mailout3.w1.samsung.com>; Fri, 10 Jul 2015 07:25:52 +0100 (BST) X-AuditID: cbfec7f5-f794b6d000001495-17-559f656f4e2a Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id B4.C5.05269.F656F955; Fri, 10 Jul 2015 07:25:51 +0100 (BST) Received: from localhost.localdomain ([10.252.80.64]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NR90064PDUXON30@eusync3.samsung.com>; Fri, 10 Jul 2015 07:25:51 +0100 (BST) 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: [PATCH] nfc: Drop owner assignment from i2c_driver Date: Fri, 10 Jul 2015 15:25:50 +0900 Message-id: <1436509550-21453-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpkluLIzCtJLcpLzFFi42I5/e/4Vd381PmhBjMXaFss3n6PxWJH+z52 i2VL9jBbvH5haLFt8RRmi8u75rBZzNmwmd3izYo77A4cHqd3r2D16J79j8Vj7sxfbB59W1Yx enzeJBfAGsVlk5Kak1mWWqRvl8CV8bXzC2vBcqGKt3PbmRoYV/F3MXJySAiYSDy7t5UdwhaT uHBvPVsXIxeHkMBSRok7fzuZIZz/jBKN996DVbEJGEtsXr4ErEpE4ACTxNwj7xhBEswChhI/ 3/0BKxIWsJa4sLmRFcRmEVCVeHO/DayGV8Bd4uuRRhaIdXISJ49NZp3AyL2AkWEVo2hqaXJB cVJ6rpFecWJucWleul5yfu4mRkjAfN3BuPSY1SFGAQ5GJR7eALb5oUKsiWXFlbmHGCU4mJVE ePklgEK8KYmVValF+fFFpTmpxYcYpTlYlMR5Z+56HyIkkJ5YkpqdmlqQWgSTZeLglGpgXFKl nDBbkW2mgNnjyblPVkoln5r2WWrWa1Gfs7lOkrdu3TJ/sE3/+fwfxqa9vx8ufLDe4+Z+Zf7W 04sD5iXwMv6ZntUW7frNvVVPcovFPu0Z7De2OXClzuYw8/nvd4zb6LyRsWBJZMf7k7NNLnjE 7Qn8nlfmu62rcU69U1nVF9f/4hsE5DoKlViKMxINtZiLihMB4HrXiBQCAAA= 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 2f77f1d03638..6c5e63cd0022 100644 --- a/drivers/nfc/nxp-nci/i2c.c +++ b/drivers/nfc/nxp-nci/i2c.c @@ -450,7 +450,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 06175ce769bb..c21c45c656c0 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 a32143951616..6f987fa36371 100644 --- a/drivers/nfc/st21nfca/i2c.c +++ b/drivers/nfc/st21nfca/i2c.c @@ -680,7 +680,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), },