From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754824AbbG0Tiz (ORCPT ); Mon, 27 Jul 2015 15:38:55 -0400 Received: from mga03.intel.com ([134.134.136.65]:45850 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753514AbbG0Tix (ORCPT ); Mon, 27 Jul 2015 15:38:53 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,556,1432623600"; d="scan'208";a="772295850" Date: Tue, 28 Jul 2015 03:37:43 +0800 From: kbuild test robot To: Rob Herring Cc: kbuild-all@01.org, Grant Likely , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] of: fix platform_no_drv_owner.cocci warnings Message-ID: <20150727193743.GA14402@lkp-nex05.intel.com> References: <201507280341.a0ke59o4%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201507280341.a0ke59o4%fengguang.wu@intel.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 drivers/of/unittest.c:982: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: Fengguang Wu --- unittest.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -979,7 +979,6 @@ static struct platform_driver unittest_d .remove = unittest_remove, .driver = { .name = "unittest", - .owner = THIS_MODULE, .of_match_table = of_match_ptr(unittest_match), }, };