From patchwork Fri Mar 21 03:21:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 3871111 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 E64AC9F334 for ; Fri, 21 Mar 2014 03:22:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 16DF42024F for ; Fri, 21 Mar 2014 03:22:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 46A902024C for ; Fri, 21 Mar 2014 03:22:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754987AbaCUDWG (ORCPT ); Thu, 20 Mar 2014 23:22:06 -0400 Received: from mail-pb0-f54.google.com ([209.85.160.54]:62493 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759996AbaCUDWE (ORCPT ); Thu, 20 Mar 2014 23:22:04 -0400 Received: by mail-pb0-f54.google.com with SMTP id ma3so1856691pbc.27 for ; Thu, 20 Mar 2014 20:22:03 -0700 (PDT) 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=FUvj3+Arfa/U0l6tTDF+R4rLkn1CwH8IgYyFepqZTvI=; b=c5gUh3nlEVEhwgHhF6tbjJXJBJ/vnY2gtC2gNtVgiaLA3zCBlyKL0SAGYOfUL6b1JL hqK5ASAi57ybQzUjYOkmpLCNr/6wXbTWLrhuPFsNzFAn9LdoyynaDwVKJeFBLVXL2Z2E dlpkgtfKA0p9wWVHwbBhSovOYOxcCNhgpUO91jGP1LAN4VF2FPFLcTxxlec3dWc9R0zx QkCANONJ0D7HMGRmwSGWoq58OxC1a4gdj/9rZrK2te8D9GqowMJ2DvMXl+VeE8NZb+yL H7CfI8JgCmubtsO5EOMY4YciJcj3DGi4LQBoHxV9HFQQkamnngYI8AsAzmTa6JEIjI5V hnPg== X-Gm-Message-State: ALoCoQkORcL3yVbvERgyrkO9EEBi9fv/vduzApfkKQJTe2JJ/fecJCh6gVoxUiRE0XXUj5FELgEp X-Received: by 10.68.113.194 with SMTP id ja2mr51124623pbb.30.1395372123303; Thu, 20 Mar 2014 20:22:03 -0700 (PDT) Received: from [192.168.0.102] (218-164-139-5.dynamic.hinet.net. [218.164.139.5]) by mx.google.com with ESMTPSA id fk4sm18812778pab.23.2014.03.20.20.22.01 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 20 Mar 2014 20:22:02 -0700 (PDT) Message-ID: <1395372118.18131.1.camel@phoenix> Subject: [PATCH] spi: altera: Remove the code to get unused platform_data From: Axel Lin To: Mark Brown Cc: Thomas Chou , linux-spi@vger.kernel.org Date: Fri, 21 Mar 2014 11:21:58 +0800 X-Mailer: Evolution 3.8.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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 The definition of struct altera_spi_platform_data does not exist in current tree. So remove the code to get platform_data which is never used. Signed-off-by: Axel Lin --- I just google it and found: There is a include/linux/spi/spi_altera.h in [PATCH v2] spi: New driver for Altera SPI. https://lkml.org/lkml/2011/1/17/16 And it got removed in [PATCH v3] spi: New driver for Altera SPI. https://lkml.org/lkml/2011/1/17/25 (It's based on Grant's comment to remove it: https://lkml.org/lkml/2011/1/17/20) drivers/spi/spi-altera.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c index f83f626..5b5709a 100644 --- a/drivers/spi/spi-altera.c +++ b/drivers/spi/spi-altera.c @@ -199,7 +199,6 @@ static irqreturn_t altera_spi_irq(int irq, void *dev) static int altera_spi_probe(struct platform_device *pdev) { - struct altera_spi_platform_data *platp = dev_get_platdata(&pdev->dev); struct altera_spi *hw; struct spi_master *master; struct resource *res; @@ -214,6 +213,7 @@ static int altera_spi_probe(struct platform_device *pdev) master->num_chipselect = 16; master->mode_bits = SPI_CS_HIGH; master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 16); + master->dev.of_node = pdev->dev.of_node; hw = spi_master_get_devdata(master); platform_set_drvdata(pdev, hw); @@ -245,9 +245,6 @@ static int altera_spi_probe(struct platform_device *pdev) if (err) goto exit; } - /* find platform data */ - if (!platp) - hw->bitbang.master->dev.of_node = pdev->dev.of_node; /* register our spi controller */ err = spi_bitbang_start(&hw->bitbang);