From patchwork Wed Aug 13 11:52:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 4718451 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 D70A5C0338 for ; Wed, 13 Aug 2014 11:52:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 45CDF20166 for ; Wed, 13 Aug 2014 11:52:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A93AE2014A for ; Wed, 13 Aug 2014 11:52:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751518AbaHMLwp (ORCPT ); Wed, 13 Aug 2014 07:52:45 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:65025 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751118AbaHMLwo (ORCPT ); Wed, 13 Aug 2014 07:52:44 -0400 Received: by mail-wg0-f43.google.com with SMTP id l18so10937654wgh.2 for ; Wed, 13 Aug 2014 04:52:43 -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=QXYFtzhmfJ03JYKmD+UarCah/7MgsUSPsZ0/ALo7+JQ=; b=L9dp8H79A2ysBdatdwa+pMEp+/GqaI10kqwhSEH7jwca0h7RfgvzMH5KBHRKA6Uojk ju/N8FOyXLMi3JnX7R+MR9zH5ugyRzI7J4n1TcOMJ/1xUOPtPNkJPJ6rAUV/WkR8Nxpn AV5egr/8TKFK/0TRiAaYBNK4NAmo7v8GGYgnXb+6ycvRYVDWTFv/DBzF9PZUiU02d+yn mFCUNB5+32ZSJfqMun8zUfEVNnK706p/eigScDF7/jyPdkfAWemAUMRPS0XgJh6FK74C bbsT7sAplO+sjW2AVnYNeHV5qK7WGUzmB3NYkqsC7WM+jjvRxgZahSKs06vEsGD8nJCz RhHQ== X-Gm-Message-State: ALoCoQlKA1NXf8ON8/UngcXsQu27eeeUpYoRYw4vOKqHYmFtCK+vPM4u+2E9zJ7maxDD/LvAzsJh X-Received: by 10.180.189.210 with SMTP id gk18mr39005054wic.82.1407930763689; Wed, 13 Aug 2014 04:52:43 -0700 (PDT) Received: from localhost (nat-27.starnet.cz. [178.255.168.27]) by mx.google.com with ESMTPSA id u5sm67202736wia.17.2014.08.13.04.52.42 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 13 Aug 2014 04:52:42 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Cc: Mark Brown , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] spi: xilinx: Remove .owner field for driver Date: Wed, 13 Aug 2014 13:52:39 +0200 Message-Id: X-Mailer: git-send-email 1.8.2.3 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, MIME_HEADER_CTYPE_ONLY, MIME_NO_TEXT, 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-xilinx.c | 1 - 1 file changed, 1 deletion(-) -- 1.8.2.3 diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c index 4d8efb16573d..79bd84f43430 100644 --- a/drivers/spi/spi-xilinx.c +++ b/drivers/spi/spi-xilinx.c @@ -471,7 +471,6 @@ static struct platform_driver xilinx_spi_driver = { .remove = xilinx_spi_remove, .driver = { .name = XILINX_SPI_NAME, - .owner = THIS_MODULE, .of_match_table = xilinx_spi_of_match, }, };