From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752034AbbIZOnB (ORCPT ); Sat, 26 Sep 2015 10:43:01 -0400 Received: from mga03.intel.com ([134.134.136.65]:5500 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751649AbbIZOnA (ORCPT ); Sat, 26 Sep 2015 10:43:00 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,592,1437462000"; d="scan'208";a="813750801" Date: Sat, 26 Sep 2015 22:42:07 +0800 From: kbuild test robot To: Alexandre Belloni Cc: kbuild-all@01.org, Alessandro Zummo , rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH] rtc: fix platform_no_drv_owner.cocci warnings Message-ID: <20150926144207.GA209151@lkp-ib03> References: <201509262245.qTOvBbXQ%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1443275679-21459-1-git-send-email-alexandre.belloni@free-electrons.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/rtc/rtc-rv8803.c:494: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: Alexandre Belloni Signed-off-by: Fengguang Wu --- rtc-rv8803.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/rtc/rtc-rv8803.c +++ b/drivers/rtc/rtc-rv8803.c @@ -491,7 +491,6 @@ MODULE_DEVICE_TABLE(i2c, rv8803_id); static struct i2c_driver rv8803_driver = { .driver = { .name = "rtc-rv8803", - .owner = THIS_MODULE, }, .probe = rv8803_probe, .remove = rv8803_remove,