From patchwork Wed Aug 13 11:52:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 4718481 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 529D3C0338 for ; Wed, 13 Aug 2014 11:53:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BAAA42014A for ; Wed, 13 Aug 2014 11:53:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 23F0520148 for ; Wed, 13 Aug 2014 11:53:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752483AbaHMLwu (ORCPT ); Wed, 13 Aug 2014 07:52:50 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:61402 "EHLO mail-we0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752422AbaHMLwr (ORCPT ); Wed, 13 Aug 2014 07:52:47 -0400 Received: by mail-we0-f169.google.com with SMTP id u56so11196051wes.28 for ; Wed, 13 Aug 2014 04:52:46 -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=lpmbFV1O9zBOfBwYNEsbpUpxKBiIyMXPEZkyBgtJR9A=; b=Fdk+8Rsd51l6zw9xNs6TXD1Ag4IqfO/ZXtOShW2VcJNVQ44OZZmfo3Bt3dklSBXZHL wF3CESnFBkbAJZCC7KEOV5P0SKOyhhwUyTX9lj8uHElzAodCrdesFfufjZZibeFNOaBB NACs4fuWtxLESCKXBLop2334DbiVL3pXSTT7pbRar/NyLTQT5OH/VUfOARVl4dSCIpdN ND0jd391esP8VBAjQ9BidLHrGBmkwEdh6CRdj0+QqhuILqRmpEoQmlKAKYu19DGkdWjg p0KJgkeHLfutt6Rl0L4bl7sCYCKJli0ozok7QEZDtZEWwAU/UyaNYeaEu9lnnIgmpkVC e7dg== X-Gm-Message-State: ALoCoQmr1AqGKhjx4XeJFmZyLEmMt0ivPj5ltVav6b/Gjk2keIkfrM7PW3USKHXZ6ThjQ8SuN/bh X-Received: by 10.194.118.201 with SMTP id ko9mr3956143wjb.26.1407930766612; Wed, 13 Aug 2014 04:52:46 -0700 (PDT) Received: from localhost (nat-27.starnet.cz. [178.255.168.27]) by mx.google.com with ESMTPSA id k6sm3945447wjq.5.2014.08.13.04.52.44 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 13 Aug 2014 04:52:45 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Cc: Mark Brown , linux-spi@vger.kernel.org Subject: [PATCH 2/2] spi: cadence: Remove .owner field for driver Date: Wed, 13 Aug 2014 13:52:40 +0200 Message-Id: X-Mailer: git-send-email 1.8.2.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, MIME_HEADER_CTYPE_ONLY, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_TVD_MIME_EPI, T_TVD_MIME_NO_HEADERS,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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/spi/spi-cadence.c | 1 - 1 file changed, 1 deletion(-) -- 1.8.2.3 diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c index 562ff83debd9..7b811e38c7ad 100644 --- a/drivers/spi/spi-cadence.c +++ b/drivers/spi/spi-cadence.c @@ -677,7 +677,6 @@ static struct platform_driver cdns_spi_driver = { .remove = cdns_spi_remove, .driver = { .name = CDNS_SPI_NAME, - .owner = THIS_MODULE, .of_match_table = cdns_spi_of_match, .pm = &cdns_spi_dev_pm_ops, },