Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2359521imj; Mon, 18 Feb 2019 04:46:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IbovS2cFLM5YRGCWUQ+/r/M9ssnxmk/Zw0sVM9HmZf77D8CBoEFml/IUhQ7b0tzqNzKUVvA X-Received: by 2002:a63:fc4d:: with SMTP id r13mr18916891pgk.242.1550493979656; Mon, 18 Feb 2019 04:46:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550493979; cv=none; d=google.com; s=arc-20160816; b=ZrVjGzz0JgiBApqh0u1OVLiwNGwuP6V/+l1z3bL6jYuMG9AZeYZ3ORXb6U48EndeRm F2N3isNtyHhwlMaUGovqtZTkzG3sun7g3b47MkVzRwTX/vpOMKNQ+cfSFNb7bLMM4rXa ZNB2qhwPTVyZmAKiWTK8knt/Qcqg4ewGssrTrOHnNZNcZqWKw9KGj2NxUmT9m80dnlJY SswCBW2N3TSmanXVjdLIGbLC6xzph+s57P8Idothn1CkjahrXyxEvFmRS1AToEs6myXp t+kHzl1F7ujBsq89lqBDCeIMrzA2TqUuHdAOEIhBNqo9cPmpHPL+EhHX2gvoV1Ru6SmH hxcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/qKeKgnavZdAqP3KeeFrj3+RGxb2a4P1M0Rfpx4CPLc=; b=stin4PjoBRnwnYcR64KWRcSjVpJXJyMdwhk8zvOy5OCvB4N3rg0AedPxT92VgDR0p/ 1L19tUtsh/eEhUf2jwVA4//6wZNGyzlwNVMyya6GfTu5FAx90DkEVN7a7tM35xtg04iD XTjsHTMF/RP4b7Xq+KVyueYEjpNlYY2SbwYrF0UnK9r1cysm1xofzZgYnjJMtbckABIT trtZVdj1RPUsSnzfpOHYwsTsRmh59ysc1fIjWiTJaih3UnzcrfXUc7etcPRZWe+Mo5cb +UCqcGz1JMIm1U2NtQz9+YjviIUkbh8AaiYgQqs/M+2p9FXjGnsl1/yCdVO7G7x6I3M0 u2Jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si14740792pla.20.2019.02.18.04.46.02; Mon, 18 Feb 2019 04:46:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729862AbfBRMp4 (ORCPT + 99 others); Mon, 18 Feb 2019 07:45:56 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:3664 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726238AbfBRMp4 (ORCPT ); Mon, 18 Feb 2019 07:45:56 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id ED9BB4C2AF2A9C0277A8; Mon, 18 Feb 2019 20:45:52 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.408.0; Mon, 18 Feb 2019 20:45:43 +0800 From: YueHaibing To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Oliver O'Halloran , Dan Williams CC: YueHaibing , , , Subject: [PATCH -next] powerpc/pseries: Fix platform_no_drv_owner.cocci warnings Date: Mon, 18 Feb 2019 12:59:30 +0000 Message-ID: <20190218125930.87548-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: YueHaibing --- arch/powerpc/platforms/pseries/papr_scm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/papr_scm.c b/arch/powerpc/platforms/pseries/papr_scm.c index bba281b1fe1b..e3f5c1a01950 100644 --- a/arch/powerpc/platforms/pseries/papr_scm.c +++ b/arch/powerpc/platforms/pseries/papr_scm.c @@ -21,6 +21,7 @@ (1ul << ND_CMD_GET_CONFIG_DATA) | \ (1ul << ND_CMD_SET_CONFIG_DATA)) + struct papr_scm_priv { struct platform_device *pdev; struct device_node *dn; @@ -358,7 +359,6 @@ static struct platform_driver papr_scm_driver = { .remove = papr_scm_remove, .driver = { .name = "papr_scm", - .owner = THIS_MODULE, .of_match_table = papr_scm_match, }, };