From patchwork Wed Aug 13 11:56:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 379622 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 3380A140088 for ; Wed, 13 Aug 2014 21:57:30 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752813AbaHML45 (ORCPT ); Wed, 13 Aug 2014 07:56:57 -0400 Received: from mail-we0-f176.google.com ([74.125.82.176]:52549 "EHLO mail-we0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752584AbaHML44 (ORCPT ); Wed, 13 Aug 2014 07:56:56 -0400 Received: by mail-we0-f176.google.com with SMTP id q58so11122950wes.21 for ; Wed, 13 Aug 2014 04:56:54 -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 :content-type; bh=zYV0ebeHKBifS1KxMFyoRY8bs9ELUNLNiFbquDVSPk4=; b=aHhZjcWxFPi/MhB8GECV9XhwYW/pxPpggcLm1SKe7+izi0MmYpxI4V4whHpsbQJkcV 5uBgW2uYe8GmlwLqP7XEh/pZlhfbP4eWzJEFYNfcckUUODMOMWhHjMNXBaoOuxiUqk1d 8b5gO1DLZdv/npwMnpR4BArUuMv99Gpfcsrq2zImPVg4RG3wGNVa1gaOtrNpXdUOx8Al 7oSt1deQLqgBkJV0TG/WvIo8JGPXxPOCHfpHh0gwoLrM9UvHm6zEuYJrqKEBh+2+sb3g q5bpnS+xSZUO3PwT1YDxjOWqs020mtvHXtD7PsfKQsE/GZbA3icJOy/ZPezLArRqomt/ bv6Q== X-Gm-Message-State: ALoCoQnyuT/JHsBHLPWAeTgfT6Wn9yXTa7HvXC5MkxBkPl+Ch4fTQbnP0wzT39lYijUFS4OohWW0 X-Received: by 10.194.95.166 with SMTP id dl6mr2028958wjb.115.1407931014869; Wed, 13 Aug 2014 04:56:54 -0700 (PDT) Received: from localhost (nat-27.starnet.cz. [178.255.168.27]) by mx.google.com with ESMTPSA id w14sm50161720wij.2.2014.08.13.04.56.53 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 13 Aug 2014 04:56:54 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Cc: Wolfram Sang , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org Subject: [PATCH 1/2] i2c: cadence: Remove .owner field for driver Date: Wed, 13 Aug 2014 13:56:51 +0200 Message-Id: X-Mailer: git-send-email 1.8.2.3 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-cadence.c | 1 - 1 file changed, 1 deletion(-) -- 1.8.2.3 diff --git a/drivers/i2c/busses/i2c-cadence.c b/drivers/i2c/busses/i2c-cadence.c index 63f3f03ecc9b..04d0a7e449ef 100644 --- a/drivers/i2c/busses/i2c-cadence.c +++ b/drivers/i2c/busses/i2c-cadence.c @@ -890,7 +890,6 @@ MODULE_DEVICE_TABLE(of, cdns_i2c_of_match); static struct platform_driver cdns_i2c_drv = { .driver = { .name = DRIVER_NAME, - .owner = THIS_MODULE, .of_match_table = cdns_i2c_of_match, .pm = &cdns_i2c_dev_pm_ops, },