From patchwork Sun Nov 13 13:36:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9424849 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BBB0D60484 for ; Sun, 13 Nov 2016 14:00:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE23828A0D for ; Sun, 13 Nov 2016 14:00:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A04A728A1D; Sun, 13 Nov 2016 14:00:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B25E28A0D for ; Sun, 13 Nov 2016 14:00:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933505AbcKMOAq (ORCPT ); Sun, 13 Nov 2016 09:00:46 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34094 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933365AbcKMOAq (ORCPT ); Sun, 13 Nov 2016 09:00:46 -0500 Received: by mail-wm0-f65.google.com with SMTP id g23so8436038wme.1 for ; Sun, 13 Nov 2016 06:00:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=iLcd9EFWdJTKVQRXD1KIkriwyVesASn0N4sOlTsNtHE=; b=hGvn43HYR368w1CO3UeYwgac8PFwRgc4lJeGLc7z2zAvXAhmyyvQS3EgWngIqDTOlF dASQ1z9PQKBgXQxQ058QfesaWgstTsevwPVaQ1ac6hIc2cVc+SL1JMU6V1Shq43cvic7 Ec/sAvOpcO1Q/AUVmF5lzNakZU24HG9l4lX2mTTgYaoQY4uABOw8gw/yYEjqiy4SUn3b bNYQzNzZTgDioBOyYkFD877ifvWfJBWIMYROK1SfBMXaMw/WlylUHL3L96ERGKIJIPSn YAtZulxS7s2tic8gkBW6URAeCuRVMOxzH28nhIWf9WZtz0WR5qbhVF8PhnNxWpfHA0pu mydw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=iLcd9EFWdJTKVQRXD1KIkriwyVesASn0N4sOlTsNtHE=; b=a0KGxvCrS5mu3yshfjOz1OAICmNXKsZiZ/y5Sd3X0TXsdWCxi2WxYAcMp2vWvDvNB5 sCJP27QnWtoMze0KqS/dM2KmZSR2SqJ2svhoWlw0GUOtCH/Af5gmtuEeqs2b9edJtPhU U2p7MrDjOl5iSGk9nEdAYbJTLSBmlLUeRqDhJRGpx9PEyate1l6LOV0VU0JWZtCKnM+d N1iZTs/vMNuIdj6cZEcmrIkILRqjfdrc0hDLS0ZgogUQrHc/0vsq3XtJG1fhDNES9+qF 9PbQWZeod9bvTaECSLWdVdCaZOk8RFnssIsV00Qc4Du1DIyGYn16uXXlqrvdI3tDTGSg 7yvw== X-Gm-Message-State: ABUngvcOEsCQyJZTdJiBDuJkl1q0ssk8sjP1ZQwvPwWniRub2IywE47xmIEWK4ZgvvgNSQ== X-Received: by 10.28.209.67 with SMTP id i64mr6771887wmg.48.1479044475821; Sun, 13 Nov 2016 05:41:15 -0800 (PST) Received: from ?IPv6:2003:62:5f58:9d00:45b5:f382:329:d09c? (p200300625F589D0045B5F3820329D09C.dip0.t-ipconnect.de. [2003:62:5f58:9d00:45b5:f382:329:d09c]) by smtp.googlemail.com with ESMTPSA id l67sm41002871wmf.0.2016.11.13.05.41.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Nov 2016 05:41:15 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 01/10] spi: fsl-espi: remove usage of pdata->initial_spmode To: Mark Brown References: <882d05f1-a963-c03a-38ae-2dd701f561a6@gmail.com> Cc: "linux-spi@vger.kernel.org" Message-ID: <87e8e8eb-d52b-e207-473b-423bcd2379a7@gmail.com> Date: Sun, 13 Nov 2016 14:36:01 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <882d05f1-a963-c03a-38ae-2dd701f561a6@gmail.com> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove pdata->initial_spmode as it is nowhere set. Signed-off-by: Heiner Kallweit --- drivers/spi/spi-fsl-espi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index 6624c5a..a1e1b68 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -661,7 +661,7 @@ static int fsl_espi_probe(struct device *dev, struct resource *mem, } /* Enable SPI interface */ - regval = pdata->initial_spmode | SPMODE_INIT_VAL | SPMODE_ENABLE; + regval = SPMODE_INIT_VAL | SPMODE_ENABLE; fsl_espi_write_reg(mpc8xxx_spi, ESPI_SPMODE, regval); @@ -786,7 +786,7 @@ static int of_fsl_espi_resume(struct device *dev) CSMODE_INIT_VAL); /* Enable SPI interface */ - regval = pdata->initial_spmode | SPMODE_INIT_VAL | SPMODE_ENABLE; + regval = SPMODE_INIT_VAL | SPMODE_ENABLE; fsl_espi_write_reg(mpc8xxx_spi, ESPI_SPMODE, regval);