Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1066574imi; Fri, 1 Jul 2022 02:16:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tNPaMdai3Tt61oj5dHnCctXVpG/giu8Ut1rxHgdPrxotBy5nFs1M/GxZJbLmj00k71PWJ8 X-Received: by 2002:a17:90a:4b89:b0:1ee:e6b0:ee80 with SMTP id i9-20020a17090a4b8900b001eee6b0ee80mr17069023pjh.16.1656667014518; Fri, 01 Jul 2022 02:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656667014; cv=none; d=google.com; s=arc-20160816; b=qzJM38pIQDr7Fkf4zsKUJlusF7vvOKRqcH1JZ4qb2hvPSUGCsoDnYV5YMhdFG5eKB3 RHeYVD3Jxn/v/GZQgEqh/wZdpw6cewOB44ykoBSUhSrOH/TeFZYn+b+PgEA+fFY/dXKD Mjpoq+7cFIyUsx4cL5A1fjuyPLSdXZx/GFktryuQNvzD8Q4yvxelh6IxnHasx1EIKfte uvihi/DZ2chiSCZLfMW5QwBRsUgClz8jaqQ/nsKNNZl6ipAA/9dcJ+NtRExpl3N6syR7 8F70MUpzpRegapteUTPyWMM+Gsu4bOUM0VR4iPsZTSuZuMnNPQs7OVwG8b/D2r0Q6hAG gBWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=I/2CwtPjawNCPyTC4C7KnmEDHRcs1gPpYP1JdXecgU8=; b=q1te8Jw769r/lRXeEsW5k1IubE25VlNQbG1cS+Dyhb5612tqu/ej111GJYvNpKkznZ joOp7sChte41kjIr4avYkAhFGlqnXqmTrnCXuxXBazxcjWuIGqs83HNIAYTPUbJTT/4X My3v3NJzz66RQyYdwRwDih0kfuGwwAz29S7HPCsGxcBR26+MJjbhyZkCZzUVwcACbMVB 3jRPq5jGNobgp2/LEJ9QzflkE2ZoTEIFoNA98QGU2xoXO1dRKBquB9BAcO4BAWduZepc feIGQuDWkaToOpusG+Z0OVNGjgDztB7c4bp6Am/moDD/Au7wIECKk8fsMoKC3OiJN5Hv NSGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x17-20020a63fe51000000b0040d5fd63025si29467802pgj.794.2022.07.01.02.16.42; Fri, 01 Jul 2022 02:16:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234152AbiGAJN1 (ORCPT + 99 others); Fri, 1 Jul 2022 05:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233002AbiGAJN1 (ORCPT ); Fri, 1 Jul 2022 05:13:27 -0400 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA75135DDE; Fri, 1 Jul 2022 02:13:25 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R811e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VI0Z9O5_1656666803; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VI0Z9O5_1656666803) by smtp.aliyun-inc.com; Fri, 01 Jul 2022 17:13:23 +0800 From: Yang Li To: peterhuewe@gmx.de Cc: jarkko@kernel.org, jgg@ziepe.ca, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] tpm: fix platform_no_drv_owner.cocci warning Date: Fri, 1 Jul 2022 17:13:22 +0800 Message-Id: <20220701091322.59384-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eliminate the following coccicheck warning: ./drivers/char/tpm/tpm_tis_i2c.c:379:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Signed-off-by: Yang Li --- drivers/char/tpm/tpm_tis_i2c.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/char/tpm/tpm_tis_i2c.c b/drivers/char/tpm/tpm_tis_i2c.c index 8e0686fe4eb1..ba0911b1d1ff 100644 --- a/drivers/char/tpm/tpm_tis_i2c.c +++ b/drivers/char/tpm/tpm_tis_i2c.c @@ -376,7 +376,6 @@ MODULE_DEVICE_TABLE(of, of_tis_i2c_match); static struct i2c_driver tpm_tis_i2c_driver = { .driver = { - .owner = THIS_MODULE, .name = "tpm_tis_i2c", .pm = &tpm_tis_pm, .of_match_table = of_match_ptr(of_tis_i2c_match), -- 2.20.1.7.g153144c