From patchwork Tue Sep 8 09:39:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 257225 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54E71C433E2 for ; Tue, 8 Sep 2020 09:40:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2C11121D20 for ; Tue, 8 Sep 2020 09:40:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729171AbgIHJkB (ORCPT ); Tue, 8 Sep 2020 05:40:01 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:11848 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728886AbgIHJj7 (ORCPT ); Tue, 8 Sep 2020 05:39:59 -0400 X-IronPort-AV: E=Sophos;i="5.76,359,1592863200"; d="scan'208";a="466564047" Received: from abo-173-121-68.mrs.modulonet.fr (HELO hadrien) ([85.68.121.173]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Sep 2020 11:39:57 +0200 Date: Tue, 8 Sep 2020 11:39:51 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Brian Kim cc: kbuild-all@lists.01.org, Dongjin Kim , memeka , Yang Deokgyu , Arnd Bergmann , Greg Kroah-Hartman , Kukjin Kim , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH] ODROID-XU4: char: exynos: fix platform_no_drv_owner.cocci warnings Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org No need to set .owner here. The core will do it. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Fixes: be904257f8a9 ("ODROID-XU4: char: exynos: add /dev/gpiomem device for rootless user GPIO access") CC: Brian Kim Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- I received some other warnings about this file, but with no details: >> drivers/char/exynos-gpiomem.c:231:15-18: ERROR: inst is NULL but dereferenced. -- >> drivers/char/exynos-gpiomem.c:231:9-13: ERROR: reference preceded by free on line 229 tree: https://github.com/tobetter/linux odroid-5.9.y head: 1118f1d60573bfbf1eb7ef079fa879a498ba4313 commit: be904257f8a9bd689b360fa98d3ffc85bdbeb560 [53/69] ODROID-XU4: char: exynos: add /dev/gpiomem device for rootless user GPIO access :::::: branch date: 4 hours ago :::::: commit date: 4 hours ago exynos-gpiomem.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/char/exynos-gpiomem.c +++ b/drivers/char/exynos-gpiomem.c @@ -255,7 +255,6 @@ MODULE_DEVICE_TABLE(of, exynos_gpiomem_o static struct platform_driver exynos_gpiomem_driver = { .driver = { .name = DRIVER_NAME, - .owner = THIS_MODULE, .of_match_table = exynos_gpiomem_of_match, }, .probe = exynos_gpiomem_probe,