Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp102817iol; Wed, 8 Jun 2022 23:15:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLot7X3tSrvK4uHacQiMR8RX4FSkNwNkvKb3unHIPDDc7Ygi1l5g90NeKmqXQkKpfzjVhk X-Received: by 2002:a17:902:ccc4:b0:156:5d37:b42f with SMTP id z4-20020a170902ccc400b001565d37b42fmr38257415ple.157.1654755326270; Wed, 08 Jun 2022 23:15:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654755326; cv=none; d=google.com; s=arc-20160816; b=yga7qJx/8PRXQ8ytvBL3WGXkXjFfuhuRBzY0vliAPOnog4xvuYJd8tgQjFA7KNT0Qw oL74LJbeV09ypypEtiC8cQXE1dhmzYueoNG7YSZv2uyAV7RiKSJ3l4OncuA2+qPEYpz5 vZ/dSHjr6odq1sxzhL6PrcY8i1ofLf9sWiyZBd5/DRMBxVRRIsUufayoN7L48LFDni0a fV9meH3FFomwy7rc7UkIIt45SI3Tyftigim5k8+3cBm+AujCH0JRFEfKxFdknv1uObpo 2WBoOmsYrairN+kI7jNO2NquMtb2a3PKvLFMELtfprYn3BZ5o3pfUy6X8tY/LWue6M8D 1e5g== 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=Z5Cj3EMeyvKKYUuU8cygNojroDFX1s5RBS/+1Lmh+q8=; b=tFr86z6Apl6AnQfj7AKB+GxfbRwtwestTt8illtA1dpnwkzW0C1Ruffw30ba2uUjUv rZVWHNIjPVURYv1CcmRmviVde+ZwgZ2YEKJNjaRwQfJF+lNyZpBoCWt/mPB2XHibskmT X8PhVbSxwaJkFGpzMsrWpBAgBRmt8PnMt4am/X2sZeue0gE4R/EVvxmfUFNjGOGiEe4U fKLpcoqYWiptihgf6MPnwuPHONXz5zCI759j0k475u6ZnexbjecqX6kbGtfbMNO2ws7e mPqWT3zGBc/ZUNDvyyLaBwdqC5JMYARGtmFL2GvLCZSE0B7/3f+/OKTgaah/R8lQsnLq ZI1Q== 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 ik23-20020a170902ab1700b0015866d0a301si28203491plb.399.2022.06.08.23.15.11; Wed, 08 Jun 2022 23:15:26 -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 S237398AbiFIFzo (ORCPT + 99 others); Thu, 9 Jun 2022 01:55:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbiFIFzk (ORCPT ); Thu, 9 Jun 2022 01:55:40 -0400 Received: from out199-2.us.a.mail.aliyun.com (out199-2.us.a.mail.aliyun.com [47.90.199.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D00C56141; Wed, 8 Jun 2022 22:55:38 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R781e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VFrDhR7_1654754134; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VFrDhR7_1654754134) by smtp.aliyun-inc.com; Thu, 09 Jun 2022 13:55:35 +0800 From: Yang Li To: broonie@kernel.org Cc: conor.dooley@microchip.com, lewis.hanly@microchip.com, linux-riscv@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 2/2] spi: fix platform_no_drv_owner.cocci warning Date: Thu, 9 Jun 2022 13:55:32 +0800 Message-Id: <20220609055533.95866-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,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 Remove .owner field if calls are used which set it automatically. Eliminate the following coccicheck warning: ./drivers/spi/spi-microchip-core.c:624:3-8: No need to set .owner here. The core will do it. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/spi/spi-microchip-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-microchip-core.c b/drivers/spi/spi-microchip-core.c index 5b2aee30fa04..3bd285dd4964 100644 --- a/drivers/spi/spi-microchip-core.c +++ b/drivers/spi/spi-microchip-core.c @@ -621,7 +621,6 @@ static struct platform_driver mchp_corespi_driver = { .name = "microchip-corespi", .pm = MICROCHIP_SPI_PM_OPS, .of_match_table = of_match_ptr(mchp_corespi_dt_ids), - .owner = THIS_MODULE, }, .remove = mchp_corespi_remove, }; -- 2.20.1.7.g153144c