From patchwork Wed Jun 14 13:47:15 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: 9786323 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 4D10860384 for ; Wed, 14 Jun 2017 13:48:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D0B126224 for ; Wed, 14 Jun 2017 13:48:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31F38283A6; Wed, 14 Jun 2017 13:48:09 +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 AD23526224 for ; Wed, 14 Jun 2017 13:48:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752216AbdFNNsH (ORCPT ); Wed, 14 Jun 2017 09:48:07 -0400 Received: from mga01.intel.com ([192.55.52.88]:9954 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751869AbdFNNsD (ORCPT ); Wed, 14 Jun 2017 09:48:03 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jun 2017 06:47:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,340,1493708400"; d="scan'208";a="1160412279" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga001.fm.intel.com with ESMTP; 14 Jun 2017 06:47:46 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1dL8hg-000IYQ-Dh; Wed, 14 Jun 2017 21:51:24 +0800 Date: Wed, 14 Jun 2017 21:47:15 +0800 From: kbuild test robot To: chiranjeevi.rapolu@intel.com Cc: kbuild-all@01.org, linux-media@vger.kernel.org, sakari.ailus@linux.intel.com, tfiga@chromium.org, jian.xu.zheng@intel.com, rajmohan.mani@intel.com, hyungwoo.yang@intel.com, Chiranjeevi Rapolu Subject: [PATCH] i2c: fix platform_no_drv_owner.cocci warnings Message-ID: <20170614134715.GA23007@xian.lkp.intel.com> References: <201706142129.jedNMTfn%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1497404348-16255-1-git-send-email-chiranjeevi.rapolu@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-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP drivers/media/i2c/ov5670.c:2577: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: Chiranjeevi Rapolu Signed-off-by: Fengguang Wu --- ov5670.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/media/i2c/ov5670.c +++ b/drivers/media/i2c/ov5670.c @@ -2574,7 +2574,6 @@ MODULE_DEVICE_TABLE(acpi, ov5670_acpi_id static struct i2c_driver ov5670_i2c_driver = { .driver = { .name = "ov5670", - .owner = THIS_MODULE, .pm = &ov5670_pm_ops, .acpi_match_table = ACPI_PTR(ov5670_acpi_ids), },