From patchwork Sun Feb 9 03:35:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 3611631 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C77279F2D6 for ; Sun, 9 Feb 2014 03:36:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EBBE9201BF for ; Sun, 9 Feb 2014 03:36:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 144EA201BB for ; Sun, 9 Feb 2014 03:36:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751393AbaBIDgF (ORCPT ); Sat, 8 Feb 2014 22:36:05 -0500 Received: from mail-pd0-f179.google.com ([209.85.192.179]:52983 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751294AbaBIDgF (ORCPT ); Sat, 8 Feb 2014 22:36:05 -0500 Received: by mail-pd0-f179.google.com with SMTP id fp1so4362172pdb.10 for ; Sat, 08 Feb 2014 19:36:04 -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=MKdSz0o+DsPC9f4ssP9eCKD9y4pMGP4Jk4s2rN4Zx1Q=; b=SoZ3wljWtpbYS2bn2mMX6RwEwcoTPODwnbkSA4whqlTIfEoolij7dz3KdK8+o3eOXE z33X6il/sLu8p0hj8DVIs2DM2wPPF4FBQbDXlnaS4gvZ2lDawWiZwKnVVjUDfflcOJ3M /Z5fddVKUusO7V4dhyY+1m4yqOu0zudBGaiaBEKK40lgqUKVax48m/UYeaHH2E/QECo1 STLz1Kw7DB2sEWYyQ01VmDIxQnkSomniWms0Z6iOgSEmXgMOSM/j500KSiI3Ux+zKOpn r+AY2g+Uacgz7mIalxDLxtIaI0aWn40GeUmxTjJYhObHKzBCanO6wNCmMGenL83J7oZy rRmQ== X-Gm-Message-State: ALoCoQmBrx0cA8sCnjyiVYAOL9wZaigxXYfw8I/hLVhAE2v6s08yLvP5AvrdxYVLX4e26zhXbVCV X-Received: by 10.66.49.74 with SMTP id s10mr17704258pan.0.1391916964010; Sat, 08 Feb 2014 19:36:04 -0800 (PST) Received: from [192.168.0.102] (218-164-136-128.dynamic.hinet.net. [218.164.136.128]) by mx.google.com with ESMTPSA id db3sm28473438pbb.10.2014.02.08.19.36.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Feb 2014 19:36:03 -0800 (PST) Message-ID: <1391916959.20382.4.camel@phoenix> Subject: [PATCH] spi: omap-100k: Remove unused fields from struct omap1_spi100k From: Axel Lin To: Mark Brown Cc: Fabrice Crohas , linux-spi@vger.kernel.org Date: Sun, 09 Feb 2014 11:35:59 +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 Both *master and state are not really used, remove them. Signed-off-by: Axel Lin --- drivers/spi/spi-omap-100k.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c index 657184a..81f2e6e 100644 --- a/drivers/spi/spi-omap-100k.c +++ b/drivers/spi/spi-omap-100k.c @@ -83,15 +83,11 @@ #define SPI_SHUTDOWN 1 struct omap1_spi100k { - struct spi_master *master; struct clk *ick; struct clk *fck; /* Virtual base address of the controller */ void __iomem *base; - - /* State of the SPI */ - unsigned int state; }; struct omap1_spi100k_cs { @@ -427,7 +423,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev) platform_set_drvdata(pdev, master); spi100k = spi_master_get_devdata(master); - spi100k->master = master; /* * The memory region base address is taken as the platform_data. @@ -454,8 +449,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev) if (status < 0) goto err; - spi100k->state = SPI_RUNNING; - return status; err: