Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1761254pxb; Sat, 14 Nov 2020 01:08:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRn33i+ZYqh2+YnQrTa3ryABZ2w+ZC7kB2gm7cU1Ntck61ioPMN7osxQfoW1kPZq9clvhB X-Received: by 2002:a17:907:2089:: with SMTP id pv9mr6011330ejb.34.1605344901388; Sat, 14 Nov 2020 01:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605344901; cv=none; d=google.com; s=arc-20160816; b=dqiNrU5fublucuUSSfl+3w0Q29SVKmDr+0QtrZT3rifue/Jh+/P1YdA1Tuv8WPAFuu JDlQqOtbp13a9ta6YUFjqZUngJ1ICLdwuCshEBLWy6F7rr/KenZ3MKn+3/x2gfT0KpB7 pmSqK4NQnUg7l21g+QeYHOc+wxe8tHKv4nZ4yDKT463Sp+U9LYI5tvpgV7QfvuHiYnDy +pmqH/Vl7030MRaxV1kXnmmEADLjemZ2ZK5ScddErTwCwRFfgLzy8kROktmW6owAArIs xw1to9dE119thCDN/sK4fPgcSmHXIkOCYP1kM+XRgxC1oKxyjOjD3QyJlsKs4S350osT Y3CA== 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=XwdsfJSNW9460Sg2GLhDbwA+0djRGf+6RZxuavjPoI8=; b=fImLM/aIrIR7o0tFk5rrh1/8bWN6Ni0EIDmyDVS2cYss1jjFQpCnuDfxyUDQsN800E 5wiTBt904RS9tlIELpy4My+dOFDXgCXxSexMCRSgNRy2ATgk/ErZN5L12ksA1lgwSCb6 GmgTQtlTBkwO42FfdXeLXDJnWaChlCqPIOVGy5X8Iv6Amoj34xlfafasvl6HTmval0Wo NmqlnXd/bpFY9f5ncFA0SS1D05yO1KfAn+a2bJYbuwP9lPwXiXNsp+lw0C2O6D1P7pjO 5R90V448tO9LF+VQUyRDoa4GoVjvvrI4Wk7/mL+mT5inxxfjj1Zg66eypDK5z1kUaiVk fWjg== 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 m8si8319547edj.357.2020.11.14.01.07.58; Sat, 14 Nov 2020 01:08:21 -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 S1726630AbgKNJD4 (ORCPT + 99 others); Sat, 14 Nov 2020 04:03:56 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8087 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbgKNJDz (ORCPT ); Sat, 14 Nov 2020 04:03:55 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CY8Ws42njzLxD4 for ; Sat, 14 Nov 2020 17:03:37 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Sat, 14 Nov 2020 17:03:44 +0800 From: Zou Wei To: CC: , Zou Wei Subject: [PATCH -next] mailbox: pcc: fix platform_no_drv_owner.cocci warning Date: Sat, 14 Nov 2020 17:15:33 +0800 Message-ID: <1605345333-23386-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/mailbox/pcc.c:580: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/mailbox/pcc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c index ef9ecd1..4b1a2d2 100644 --- a/drivers/mailbox/pcc.c +++ b/drivers/mailbox/pcc.c @@ -577,7 +577,6 @@ static struct platform_driver pcc_mbox_driver = { .probe = pcc_mbox_probe, .driver = { .name = "PCCT", - .owner = THIS_MODULE, }, }; -- 2.6.2