From patchwork Mon Jun 19 13:24:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 9795921 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AC5DE6020B for ; Mon, 19 Jun 2017 13:26:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92A0F26E97 for ; Mon, 19 Jun 2017 13:26:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84EBA27CEA; Mon, 19 Jun 2017 13:26:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FB7C26E97 for ; Mon, 19 Jun 2017 13:26:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751062AbdFSNZx (ORCPT ); Mon, 19 Jun 2017 09:25:53 -0400 Received: from mga14.intel.com ([192.55.52.115]:64439 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751056AbdFSNZa (ORCPT ); Mon, 19 Jun 2017 09:25:30 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jun 2017 06:25:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,361,1493708400"; d="scan'208";a="1184315651" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga002.fm.intel.com with ESMTP; 19 Jun 2017 06:25:27 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1dMwjo-000MA2-Ow; Mon, 19 Jun 2017 21:29:04 +0800 Date: Mon, 19 Jun 2017 21:24:27 +0800 From: kbuild test robot To: Wang Yafei Cc: kbuild-all@01.org, Dmitry Torokhov , Henrik Rydberg , linux-input@vger.kernel.org, andrew@goodix.com, mouse@goodix.com, linux-kernel@vger.kernel.org Subject: [PATCH] Input: fix platform_no_drv_owner.cocci warnings Message-ID: <20170619132427.GA46641@lkp-hsx03.lkp.intel.com> References: <201706192107.ru8ophjW%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <33339a02-dac7-9097-9ea4-3c12c7b84a59@goodix.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP drivers/input/touchscreen/goodix-ts-sunrise/goodix_ts_core.c:1335: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 CC: Wang Yafei Signed-off-by: Fengguang Wu --- goodix_ts_core.c | 1 - 1 file changed, 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/input/touchscreen/goodix-ts-sunrise/goodix_ts_core.c +++ b/drivers/input/touchscreen/goodix-ts-sunrise/goodix_ts_core.c @@ -1332,7 +1332,6 @@ MODULE_DEVICE_TABLE(platform, ts_core_id static struct platform_driver goodix_ts_driver = { .driver = { .name = GOODIX_CORE_DRIVER_NAME, - .owner = THIS_MODULE, .pm = &dev_pm_ops, }, .probe = goodix_ts_probe,