Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1741916pxb; Sat, 14 Nov 2020 00:15:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJztFsAUvQRsYrN9Q/iZilPVBuIqAcTqGOLEsPgixMCVSNpSdVxE5NEhoiKzkEH3M8tTHroU X-Received: by 2002:aa7:d2d9:: with SMTP id k25mr6288254edr.310.1605341744207; Sat, 14 Nov 2020 00:15:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605341744; cv=none; d=google.com; s=arc-20160816; b=jG049qPb/jhMEpCLw6v5hpT4kY+tVyV4Nl1iX5ylfgQK/CyTyCdRCE/nsLPrlZ/RiT 7BsVGcztgMs/gSK1kt6MTOU79Yr0nqBkvQIL8IY2abdhVo25DHdfe3+Edey7ewsZH/zy L1yw5CCy7ufY1GqBu1R/3jtl54TwzsesdTjAjJh69A2Q7s/M8HrGOJSo1ziUkf7qVOYu M2jljQwJBaQptoh12vOi4gObI/ywDiZLmlZmiY4o5JZ+Cu0tspRFiwtw8vl2WZEGwZqA 848BOwu/f9C31gfeVPmW4Id6hqII+SBFDBZALsocq84cp+euA7wopl/2t7GRZn20Lm9H 0//Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=s55/CygEEbwYRTXbNGau0zzyXFQ8qrNjY3Ao98jE7sA=; b=gy4/PqhUAqoxTZvBlmVlEGdcLNcoj8jU9GFvWEiM24Ui7H36gbXsnsCA/IOMap1GBW NaFGSZafH9bIqJZM7oCO+VnokCNb0kdhpKK3vzYJ9h1us3nnm2guPUX0HWJnqjwQ6El0 NJ2x7c3OW4PmLgvBFqqKD3s2BhyG2jXtwAnB3gRzZNidoNOfgjYhKMXI3sjPaKCbhYrZ xiIxmojVJjsQ8g0g7wN17rcsKuF3fHL7cdlht2eoNW3dyi3YR+wUGv+Uqo0BvwAXw91M qiMkRIS2XrblEjpJjgDbKHU9z4JhQ0sYBIwLJDubey94SHffFgBlv60zcHRPdF29vqjr VVCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si7944935edq.305.2020.11.14.00.15.21; Sat, 14 Nov 2020 00:15:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726583AbgKNILS (ORCPT + 99 others); Sat, 14 Nov 2020 03:11:18 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:7900 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbgKNILS (ORCPT ); Sat, 14 Nov 2020 03:11:18 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CY7MF33zqz76jG for ; Sat, 14 Nov 2020 16:11:05 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Sat, 14 Nov 2020 16:11:09 +0800 From: Zou Wei To: CC: , Zou Wei Subject: [PATCH -next] auxdisplay: fix platform_no_drv_owner.cocci warning Date: Sat, 14 Nov 2020 16:22:58 +0800 Message-ID: <1605342178-22796-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ./drivers/auxdisplay/lcd2s.c:373:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Zou Wei --- drivers/auxdisplay/lcd2s.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/auxdisplay/lcd2s.c b/drivers/auxdisplay/lcd2s.c index 3eb7f04..38ba0862 100644 --- a/drivers/auxdisplay/lcd2s.c +++ b/drivers/auxdisplay/lcd2s.c @@ -370,7 +370,6 @@ MODULE_DEVICE_TABLE(of, lcd2s_of_table); static struct i2c_driver lcd2s_i2c_driver = { .driver = { .name = "lcd2s", - .owner = THIS_MODULE, #ifdef CONFIG_OF .of_match_table = of_match_ptr(lcd2s_of_table), #endif -- 2.6.2