From patchwork Sun Nov 13 13:36:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9424839 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 4A4F760720 for ; Sun, 13 Nov 2016 13:59:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E8C328A0D for ; Sun, 13 Nov 2016 13:59:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F66C28A12; Sun, 13 Nov 2016 13:59:37 +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 C8D5328A12 for ; Sun, 13 Nov 2016 13:59:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933505AbcKMN7g (ORCPT ); Sun, 13 Nov 2016 08:59:36 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34634 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933365AbcKMN7f (ORCPT ); Sun, 13 Nov 2016 08:59:35 -0500 Received: by mail-wm0-f67.google.com with SMTP id g23so8427865wme.1 for ; Sun, 13 Nov 2016 05:58:47 -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=Zy8B6Bh89MvoBiBMPhgKXatAWNTyHmitp7oxW7n0grM=; b=W12I9Ptt0K6ZNVCqTOigJ4Q3PgTdFwkQM/AUHP36MF3WWs03Nf7YtjqcReqHh18a6/ YOWMuJswu//DqzNzq9X1r71UJED5nI/xB5CP7THD7kBaHHx9MJk7cr1Jkky2EQ5qb/wd IP+1ghCrzL8RqT1zzuBbgCkRzYcew2EGDbU6K3n65VJyhGLFkd9HrIUZqi1yJI7lGdf2 wiXHXAiQoX3oXM5UqOdl28CWhjVqX6Jb7LyDACZyjxPwEv2dMgo+XJuHavENRd8DTu1m IjRJPOFfCVV0ZQDawOS39fbHZihX2VUW3/uzWunANLcDhslcssPB05BpJazg2f04s3dM VVqA== 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=Zy8B6Bh89MvoBiBMPhgKXatAWNTyHmitp7oxW7n0grM=; b=Kg3/41bf0Ed4dBylnM201n2YMqj5+ebO1orenIdHWPMIWquFmUVQ1tGZF4XtAWNxd4 n+N0jq8NxV4qsV5OjSg5ylhQBJLL28GB8Yr6DDfq/hM/vXG5L+mE6qRlg69t2xOxRxGq dWByTqaZwDSIYdC+mKv2J53Of6t8D8ZmSbCzlLY0rTNBw1kTP9tSX1eTveVbvUYjtCes uPxa9bCNtLk5OwM86ywWacYCbZxpOEMeJ5fvEHbnBe4//tyWU3y5xT/YkCcOF2tGITdc rNLrBhRDcDELTvfCsSnyYu+biYI2oW2KxQNm8uR9OhQ6da1qmjZhKP+nb6EwrvUw3PXt zDYg== X-Gm-Message-State: ABUngvf39tRHplcXYUOzqg4Fc51FSAHW/jhCDSJZlHHUPGRc/nR0v8+b0kHY4U6yea+ZLg== X-Received: by 10.194.192.33 with SMTP id hd1mr15833421wjc.46.1479044479149; Sun, 13 Nov 2016 05:41:19 -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 g17sm22600442wjs.38.2016.11.13.05.41.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Nov 2016 05:41:18 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 04/10] spi: fsl-espi: remove usage of mpc8xxx_spi->irq To: Mark Brown References: <21625685-c2fd-be5e-f55a-c109b9b04935@gmail.com> Cc: "linux-spi@vger.kernel.org" Message-ID: <6819df7d-ddfc-49e3-1c70-76e805c5c80f@gmail.com> Date: Sun, 13 Nov 2016 14:36:47 +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: <21625685-c2fd-be5e-f55a-c109b9b04935@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 There's no need to access mpc8xxx_spi->irq, we can use function parameter irq directly. Signed-off-by: Heiner Kallweit --- drivers/spi/spi-fsl-espi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index 29cd4e0..6a011b0 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -615,8 +615,8 @@ static int fsl_espi_probe(struct device *dev, struct resource *mem, } /* Register for SPI Interrupt */ - ret = devm_request_irq(dev, mpc8xxx_spi->irq, fsl_espi_irq, - 0, "fsl_espi", mpc8xxx_spi); + ret = devm_request_irq(dev, irq, fsl_espi_irq, 0, "fsl_espi", + mpc8xxx_spi); if (ret) goto err_probe; @@ -675,8 +675,7 @@ static int fsl_espi_probe(struct device *dev, struct resource *mem, if (ret < 0) goto err_pm; - dev_info(dev, "at 0x%p (irq = %d)\n", mpc8xxx_spi->reg_base, - mpc8xxx_spi->irq); + dev_info(dev, "at 0x%p (irq = %u)\n", mpc8xxx_spi->reg_base, irq); pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev);