Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932824AbcCKQqr (ORCPT ); Fri, 11 Mar 2016 11:46:47 -0500 Received: from mga01.intel.com ([192.55.52.88]:3622 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932264AbcCKQqo (ORCPT ); Fri, 11 Mar 2016 11:46:44 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,321,1455004800"; d="scan'208";a="934798606" Date: Sat, 12 Mar 2016 00:45:43 +0800 From: kbuild test robot To: Alexey Brodkin Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, Alexey Brodkin , David Airlie , dri-devel@lists.freedesktop.org, Jose Abreu Subject: [PATCH] drm: fix platform_no_drv_owner.cocci warnings Message-ID: <20160311164542.GA94290@lkp-ib04> References: <201603120053.Dr2iFD2z%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1457710959-9562-2-git-send-email-abrodkin@synopsys.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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 674 Lines: 23 drivers/gpu/drm/arc/arcpgu_drv.c:243:6-11: 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: Alexey Brodkin Signed-off-by: Fengguang Wu --- arcpgu_drv.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/gpu/drm/arc/arcpgu_drv.c +++ b/drivers/gpu/drm/arc/arcpgu_drv.c @@ -240,7 +240,6 @@ static struct platform_driver arcpgu_pla .remove = arcpgu_remove, .driver = { .name = "arcpgu", - .owner = THIS_MODULE, .of_match_table = arcpgu_of_table, }, };