From patchwork Sat Feb 8 03:15:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 3609031 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 5C035BF418 for ; Sat, 8 Feb 2014 03:16:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6946F200DC for ; Sat, 8 Feb 2014 03:16:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8780620181 for ; Sat, 8 Feb 2014 03:16:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750849AbaBHDQM (ORCPT ); Fri, 7 Feb 2014 22:16:12 -0500 Received: from mail-pa0-f52.google.com ([209.85.220.52]:34621 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbaBHDQL (ORCPT ); Fri, 7 Feb 2014 22:16:11 -0500 Received: by mail-pa0-f52.google.com with SMTP id bj1so3978358pad.11 for ; Fri, 07 Feb 2014 19:16:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=ScMl1Q3a4suG95Wts90BCJBcF1FeRgoZ6vAlflNI8aQ=; b=SBO5y2Is4Q/A1qqQmqtd1q6UExJCRwOWmTzBBLdjIt2E6TIwopQOzGj1OWEkNtqxgw K/tPpA86dZhl6gWsCY0a9hyCo7BG+CmOVP1CB9LVl3M/yvCcr7H5D1c8hRG/phCUr4qO XoHjBTA82g415yqVRLzgB6s8birYuyBB9MJmpkrq131kD7Vle1xXf5cug/BZ25Ujogh3 TEXw7Mnrk8UtqaPRkdaW3tn5QiZkx0BbZQNoPeBSrFLCM8S58gvdVROg3lhav/uGdSBr xJ/DUVD66BnBZyQz/z+dULIo67zSQH0wUsv8tU72vMxkRW+WdDbXl4wo5rDNZOc61722 sgTg== X-Gm-Message-State: ALoCoQln/xb62dFgeaT1kS3pH4qTuhCVOzWC57375Tkz+WnDZuCVrV+LhEw2ZjYYE69SwlZsnaVY X-Received: by 10.66.158.132 with SMTP id wu4mr11901740pab.66.1391829370518; Fri, 07 Feb 2014 19:16:10 -0800 (PST) Received: from [192.168.0.102] (218-164-148-200.dynamic.hinet.net. [218.164.148.200]) by mx.google.com with ESMTPSA id os1sm47831106pac.20.2014.02.07.19.16.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 19:16:09 -0800 (PST) Message-ID: <1391829357.11855.1.camel@phoenix> Subject: [PATCH] spi: nuc900: Remove unused fields from struct nuc900_spi From: Axel Lin To: Mark Brown Cc: Wan ZongShun , linux-spi@vger.kernel.org Date: Sat, 08 Feb 2014 11:15:57 +0800 X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 Signed-off-by: Axel Lin --- drivers/spi/spi-nuc900.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-nuc900.c b/drivers/spi/spi-nuc900.c index d8d55c7..675c210 100644 --- a/drivers/spi/spi-nuc900.c +++ b/drivers/spi/spi-nuc900.c @@ -57,11 +57,8 @@ struct nuc900_spi { unsigned char *rx; struct clk *clk; struct spi_master *master; - struct spi_device *curdev; - struct device *dev; struct nuc900_spi_info *pdata; spinlock_t lock; - struct resource *res; }; static inline struct nuc900_spi *to_hw(struct spi_device *sdev) @@ -337,6 +334,7 @@ static int nuc900_spi_probe(struct platform_device *pdev) { struct nuc900_spi *hw; struct spi_master *master; + struct resource *res; int err = 0; master = spi_alloc_master(&pdev->dev, sizeof(struct nuc900_spi)); @@ -348,7 +346,6 @@ static int nuc900_spi_probe(struct platform_device *pdev) hw = spi_master_get_devdata(master); hw->master = master; hw->pdata = dev_get_platdata(&pdev->dev); - hw->dev = &pdev->dev; if (hw->pdata == NULL) { dev_err(&pdev->dev, "No platform data supplied\n"); @@ -368,8 +365,8 @@ static int nuc900_spi_probe(struct platform_device *pdev) hw->bitbang.chipselect = nuc900_spi_chipsel; hw->bitbang.txrx_bufs = nuc900_spi_txrx; - hw->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hw->regs = devm_ioremap_resource(&pdev->dev, hw->res); + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + hw->regs = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(hw->regs)) { err = PTR_ERR(hw->regs); goto err_pdata;