From patchwork Wed Aug 13 11:56:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 379621 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id D7D5E140088 for ; Wed, 13 Aug 2014 21:57:24 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752676AbaHML5A (ORCPT ); Wed, 13 Aug 2014 07:57:00 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:54425 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752822AbaHML46 (ORCPT ); Wed, 13 Aug 2014 07:56:58 -0400 Received: by mail-wi0-f182.google.com with SMTP id d1so659587wiv.15 for ; Wed, 13 Aug 2014 04:56:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:content-type; bh=mV/4mv8mkBMiEY3vNKjp5pNUMBWlS2I+oog3LIHLVQ0=; b=PNAy4WI2m4IY6eyDWrT7RQkQbm4TtUbUspftWBXYTEVnz4xv5JWfhQocBZ33wYv/v5 n4URUSEoL+3edJ/hc7pHuPqlu9hh/Ll0DG5E38CJ1Kgie+acAJfR/NI7K00V3glGlAB1 TQDaMYWk0CkMR6qAB3ZKeZngQ4Mmg2HNZAw4FqC6WAB0l6InwkcWkgGWiSQWR1wK0khP dlMqEc33N14f2o3Y73tmRSyf+R5tuWZwNv69zfu6XklG7QOKXawh3UTCnBjd7lVfdEy3 QdVY0WAAafz6+4XtCTIxtjd5qq6mBFGOcSdsoCjOorraERoW+Cy2J9BetJXOk5/xAYTc 1m6Q== X-Gm-Message-State: ALoCoQmU3sMal9SvrAtEuKg6ZS37tbZ3Yb3YCD2ceEcf4ftlR/hGpAMMjxhx1ADI8ye7yUSVXyFo X-Received: by 10.194.3.100 with SMTP id b4mr1974776wjb.111.1407931017542; Wed, 13 Aug 2014 04:56:57 -0700 (PDT) Received: from localhost (nat-27.starnet.cz. [178.255.168.27]) by mx.google.com with ESMTPSA id gi15sm3952036wjc.20.2014.08.13.04.56.56 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 13 Aug 2014 04:56:56 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Cc: Wolfram Sang , Jingoo Han , Kedareswara rao Appana , Paul Gortmaker , linux-i2c@vger.kernel.org Subject: [PATCH 2/2] i2c: i2c-xiic: Remove .owner field for driver Date: Wed, 13 Aug 2014 13:56:52 +0200 Message-Id: <4d4f18e78a5231681494e8caadc06a94246a0201.1407931005.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org There is no need to init .owner field. Based on the patch from Peter Griffin "mmc: remove .owner field for drivers using module_platform_driver" This patch removes the superflous .owner field for drivers which use the module_platform_driver API, as this is overriden in platform_driver_register anyway." Signed-off-by: Michal Simek --- drivers/i2c/busses/i2c-xiic.c | 1 - 1 file changed, 1 deletion(-) -- 1.8.2.3 diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index ade9223912d3..e60e67a5fac6 100644 --- a/drivers/i2c/busses/i2c-xiic.c +++ b/drivers/i2c/busses/i2c-xiic.c @@ -771,7 +771,6 @@ static struct platform_driver xiic_i2c_driver = { .probe = xiic_i2c_probe, .remove = xiic_i2c_remove, .driver = { - .owner = THIS_MODULE, .name = DRIVER_NAME, .of_match_table = of_match_ptr(xiic_of_match), },