Return-path: Received: from mail-qt0-f195.google.com ([209.85.216.195]:36620 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754878AbeDWLoX (ORCPT ); Mon, 23 Apr 2018 07:44:23 -0400 Received: by mail-qt0-f195.google.com with SMTP id q13-v6so17168065qtl.3 for ; Mon, 23 Apr 2018 04:44:22 -0700 (PDT) From: Fabio Estevam To: mchehab@kernel.org Cc: hverkuil@xs4all.nl, sakari.ailus@iki.fi, linux-media@vger.kernel.org, Fabio Estevam , Shunqian Zheng Subject: [PATCH RESEND 2/3] media: ov5695: Remove owner assignment from i2c_driver Date: Mon, 23 Apr 2018 08:42:01 -0300 Message-Id: <1524483722-19783-2-git-send-email-festevam@gmail.com> In-Reply-To: <1524483722-19783-1-git-send-email-festevam@gmail.com> References: <1524483722-19783-1-git-send-email-festevam@gmail.com> Sender: linux-media-owner@vger.kernel.org List-ID: From: Fabio Estevam Structure i2c_driver does not need to set the owner field, as this will be populated by the driver core. Generated by scripts/coccinelle/api/platform_no_drv_owner.cocci. Cc: Shunqian Zheng Signed-off-by: Fabio Estevam --- drivers/media/i2c/ov5695.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/i2c/ov5695.c b/drivers/media/i2c/ov5695.c index 9be38a0..9a80dec 100644 --- a/drivers/media/i2c/ov5695.c +++ b/drivers/media/i2c/ov5695.c @@ -1385,7 +1385,6 @@ MODULE_DEVICE_TABLE(of, ov5695_of_match); static struct i2c_driver ov5695_i2c_driver = { .driver = { .name = "ov5695", - .owner = THIS_MODULE, .pm = &ov5695_pm_ops, .of_match_table = of_match_ptr(ov5695_of_match), }, -- 2.7.4