Return-path: Received: from mail-qt0-f194.google.com ([209.85.216.194]:38587 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753192AbeCQSZF (ORCPT ); Sat, 17 Mar 2018 14:25:05 -0400 Received: by mail-qt0-f194.google.com with SMTP id n12so14200177qtl.5 for ; Sat, 17 Mar 2018 11:25:05 -0700 (PDT) From: Fabio Estevam To: mchehab@kernel.org Cc: zhengsq@rock-chips.com, linux-media@vger.kernel.org, Fabio Estevam Subject: [PATCH v2] media: ov2685: Remove owner assignment from i2c_driver Date: Sat, 17 Mar 2018 15:24:58 -0300 Message-Id: <1521311098-12079-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. Signed-off-by: Fabio Estevam --- Changes since v1: - s/platform_driver/i2c_driver in the commit log drivers/media/i2c/ov2685.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/i2c/ov2685.c b/drivers/media/i2c/ov2685.c index 83c55e8..385c188 100644 --- a/drivers/media/i2c/ov2685.c +++ b/drivers/media/i2c/ov2685.c @@ -832,7 +832,6 @@ MODULE_DEVICE_TABLE(of, ov2685_of_match); static struct i2c_driver ov2685_i2c_driver = { .driver = { .name = "ov2685", - .owner = THIS_MODULE, .pm = &ov2685_pm_ops, .of_match_table = of_match_ptr(ov2685_of_match), }, -- 2.7.4