From patchwork Wed Apr 3 04:01:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10882681 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 929851708 for ; Wed, 3 Apr 2019 04:02:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C8A728989 for ; Wed, 3 Apr 2019 04:02:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70613289A2; Wed, 3 Apr 2019 04:02:05 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 1988D28989 for ; Wed, 3 Apr 2019 04:02:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727082AbfDCECE (ORCPT ); Wed, 3 Apr 2019 00:02:04 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45141 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727019AbfDCECC (ORCPT ); Wed, 3 Apr 2019 00:02:02 -0400 Received: by mail-pg1-f193.google.com with SMTP id y3so7593959pgk.12; Tue, 02 Apr 2019 21:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tQnPRHBYBncms8D+H1okMWZ+MjeILBMAYDZbMM2hsC8=; b=RVqf+s0WgJTl4KGO1hALttS6DkfOn+T5OuGU1CTG98d2u2NOBOUzSJj578cvPL5psn 9Y5oPqXUdOla+AHFksxvWWuVRRlLpo+ATmD+bUiCD5deNsXfsDSo9g4PfYdr75y3bHoJ wMoROOs7uRPUHRA+BQABEPWRy7dOKNwtOiE/Hu+3cF58De64FqEsW4oU+Fzk8iF/BH+K HxhYJwI+DQ/A7ERQ67bkUJDJXA+2aMZmlbzwFYmS5MuZPDqG2K6cOXIcvQ6Sgb7Cd5wv cW3o7UqPRzLMup2NDmmBn+3njwFS1++PK/EYh7Qfa/dZlcN9TTusVsFrhUoBxEyEVs8M tjFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tQnPRHBYBncms8D+H1okMWZ+MjeILBMAYDZbMM2hsC8=; b=rOHYLAh3TGamaefr0244oPNBVMSivmJb2/giDN7NLz/0LIbPUnWbRtZNCqDAfuLffK mdA7ryceJ36UsN95O0ZdKFc+No44+p6sc4ylIdB+Mzl+6f14+2ZrN1tkMP5R4h7ebkAX p3b0Dv5662beqYgNB6kOfBrKdChoD66CVNdr1fItuWkgTf/KNTNpFcwLw+oJ06qly551 josLcYTCNF+ts3bscyUutWFNTg4WNOpO1X+PCRlJuy1OdNBoUeYXPkS9W2+k1g1dME+J SBPVdC9T1eiWuJAKNn6uCBaezqrEdNg1J41q85mkZK/PSKy1kWIr4uZeMghNchJ/16KC 836g== X-Gm-Message-State: APjAAAVT0lzH9qY7c5ci2cRyhLBFaZbYvgKxIjbxqHeSPTeTNJcEiRvk g0azZBiazfCGhk0HV06+J5Z/BqTP X-Google-Smtp-Source: APXvYqyiU76RxdOYmcXJysoHeQ7fASKhbnbSoV2Ep7nsLyRO95wjHhNlwUw2h3xHMIsRBk2eM5PB8Q== X-Received: by 2002:a63:4b21:: with SMTP id y33mr17899629pga.37.1554264121792; Tue, 02 Apr 2019 21:02:01 -0700 (PDT) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id k14sm16278064pfb.125.2019.04.02.21.02.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 21:02:00 -0700 (PDT) From: Andrey Smirnov To: linux-spi@vger.kernel.org Cc: Andrey Smirnov , Mark Brown , Chris Healy , linux-kernel@vger.kernel.org Subject: [PATCH 09/12] spi: gpio: Drop unused pdev field in struct spi_gpio Date: Tue, 2 Apr 2019 21:01:30 -0700 Message-Id: <20190403040133.1459-10-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190403040133.1459-1-andrew.smirnov@gmail.com> References: <20190403040133.1459-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 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 There's no code using 'pdev' field in struct spi_gpio. Drop it. Signed-off-by: Andrey Smirnov Cc: Mark Brown Cc: Chris Healy Cc: linux-spi@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/spi/spi-gpio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c index 84ca803f6f69..3a6a9c6966c0 100644 --- a/drivers/spi/spi-gpio.c +++ b/drivers/spi/spi-gpio.c @@ -42,7 +42,6 @@ struct spi_gpio { struct spi_bitbang bitbang; - struct platform_device *pdev; struct gpio_desc *sck; struct gpio_desc *miso; struct gpio_desc *mosi; @@ -391,8 +390,6 @@ static int spi_gpio_probe(struct platform_device *pdev) platform_set_drvdata(pdev, spi_gpio); - spi_gpio->pdev = pdev; - status = spi_gpio_request(dev, spi_gpio); if (status) return status;