From patchwork Tue Jul 12 20:06:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 9226127 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 8003760871 for ; Tue, 12 Jul 2016 20:09:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72A9326E51 for ; Tue, 12 Jul 2016 20:09:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 670A527D85; Tue, 12 Jul 2016 20:09:08 +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 D8DEE27D29 for ; Tue, 12 Jul 2016 20:09:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751316AbcGLUIx (ORCPT ); Tue, 12 Jul 2016 16:08:53 -0400 Received: from mga03.intel.com ([134.134.136.65]:6934 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750826AbcGLUIw (ORCPT ); Tue, 12 Jul 2016 16:08:52 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 12 Jul 2016 13:08:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,353,1464678000"; d="scan'208";a="1015598636" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by orsmga002.jf.intel.com with ESMTP; 12 Jul 2016 13:08:28 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1bN3yb-000HkD-T0; Wed, 13 Jul 2016 04:08:17 +0800 Date: Wed, 13 Jul 2016 04:06:55 +0800 From: kbuild test robot To: Karl-Heinz Schneider Cc: kbuild-all@01.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, linux-i2c@vger.kernel.org, Rob Herring , Mark Rutland , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , "Rafael J. Wysocki" , Peter Rosin , Phil Reid , Karl-Heinz Schneider Subject: [PATCH] power: fix platform_no_drv_owner.cocci warnings Message-ID: <20160712200655.GA18743@cairo> References: <201607130449.xU6uiSoe%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1468349295-4935-3-git-send-email-karl-heinz@schneider-inet.de> 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP drivers/power/sbs-manager.c:315: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: Karl-Heinz Schneider Signed-off-by: Fengguang Wu --- sbs-manager.c | 1 - 1 file changed, 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/power/sbs-manager.c +++ b/drivers/power/sbs-manager.c @@ -312,7 +312,6 @@ MODULE_DEVICE_TABLE(i2c, sbsm_ids); static struct i2c_driver sbsm_driver = { .driver = { .name = "sbsm", - .owner = THIS_MODULE, }, .probe = sbsm_probe, .remove = sbsm_remove,