Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp388669pxj; Thu, 27 May 2021 02:38:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4JvVp5YFRvl4ivYbrCMfTFRLBR8sCFPxGpcVH+Io8Erv3YEdeY6nrWBNmgZf+Auldp21h X-Received: by 2002:a05:6402:1601:: with SMTP id f1mr3072569edv.383.1622108292094; Thu, 27 May 2021 02:38:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622108292; cv=none; d=google.com; s=arc-20160816; b=TT/shS+/N05LWhbtkRNxjkCCMgG+0cdDPQ31lBV9P1NMwhCIRscSSbINZDABk/0n6R NN1L+9WyrcGrGA2GQA0i1cz1CrE6SO3Zb7g7VJJbfHZr/Sd6ju9uf+yZ9BDMzdBQsWGP e/NvgDsjhWIsGNn62xObbSlxi5HLumGuwJhXLGOgSK9m7/lrwKm1b3K4KZqNjCRZ1qv3 gNw8yppdCS7CTYsgOAxfR6j4feZ5zBnLsHMmKN4OEsWManfIj2HgYX90CGK5uvDWYPUf D2Tl4HLv5n7gkSbcMlbB2swEzWWrLhE+SHnWImN65tm1yiRiXFKAemrTaFbusLIpyCx3 TB/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=pceKMIhZqBLe/WtSWAxzGlpG0JFUH0TGiTp33HVKea4=; b=FiFQq/x5PAg+dPEOmjQxje6Cv61TCmEeFUMEvaD+XZtjx4rcrBoFFqdjfE9+etAlQf 1mM4X39p+0R22qRTrnN7Gcgumcora7qD4nxvkNJ9ymz76bNY8WR+okhsVu/id49YEhuW 9QWBYJS+x9YSeb645BKvgVxROSEDcJHf/bMEjhQ+bLB9B+ufwLfyAddFDJg/trVVfY2x HR82fiuATtKr5GywRLTG6MezVa2NDctyg8IOMfyRHFwgPnuviWEbsfNzM6h2DoHnrvDl oVjm5eOEeXkhKnnqiuUA84c63Z4UqQJR8671/qpeWAzLz48VLPIt41hZvEQcsmYpotXl FDIA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh1si1591432edb.564.2021.05.27.02.37.48; Thu, 27 May 2021 02:38:12 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235977AbhE0JhD (ORCPT + 99 others); Thu, 27 May 2021 05:37:03 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:2313 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235825AbhE0Jgz (ORCPT ); Thu, 27 May 2021 05:36:55 -0400 Received: from dggeml713-chm.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4FrMxf0FHPz19V00; Thu, 27 May 2021 17:30:46 +0800 (CST) Received: from dggemi762-chm.china.huawei.com (10.1.198.148) by dggeml713-chm.china.huawei.com (10.3.17.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 27 May 2021 17:35:20 +0800 Received: from linux-lmwb.huawei.com (10.175.103.112) by dggemi762-chm.china.huawei.com (10.1.198.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 27 May 2021 17:35:20 +0800 From: Zou Wei To: , , CC: , , Zou Wei Subject: [PATCH -next] regulator: bd71815: fix platform_no_drv_owner.cocci warnings Date: Thu, 27 May 2021 17:54:04 +0800 Message-ID: <1622109244-54739-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-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggemi762-chm.china.huawei.com (10.1.198.148) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ./drivers/regulator/bd71815-regulator.c:644: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 Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/regulator/bd71815-regulator.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/regulator/bd71815-regulator.c b/drivers/regulator/bd71815-regulator.c index a079efa..4dd21ac 100644 --- a/drivers/regulator/bd71815-regulator.c +++ b/drivers/regulator/bd71815-regulator.c @@ -641,7 +641,6 @@ MODULE_DEVICE_TABLE(platform, bd7181x_pmic_id); static struct platform_driver bd7181x_regulator = { .driver = { .name = "bd7181x-pmic", - .owner = THIS_MODULE, }, .probe = bd7181x_probe, .id_table = bd7181x_pmic_id, -- 2.6.2