From patchwork Sun Aug 10 15:56:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manuel Lauss X-Patchwork-Id: 4704851 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CC661C0338 for ; Sun, 10 Aug 2014 15:56:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BB9720173 for ; Sun, 10 Aug 2014 15:56:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 33F9E20160 for ; Sun, 10 Aug 2014 15:56:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751235AbaHJP4o (ORCPT ); Sun, 10 Aug 2014 11:56:44 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:43082 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751226AbaHJP4n (ORCPT ); Sun, 10 Aug 2014 11:56:43 -0400 Received: by mail-wg0-f45.google.com with SMTP id x12so7460752wgg.28 for ; Sun, 10 Aug 2014 08:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=m3PF0BGOvT77UqmjmtirCe3xxz4kzCJ/RmsovYuPLrE=; b=gxLOQhszzBu6An+Q9BT3GIpYnho8+PqCOZVzLAxMR0riUTUnuhUOr1X6RcF7Ns7Ymg JJSc3h+v4eARbLkeXFpTJO/aImVoejOGERw05tlcLRPhQBBS4HNrXDLOKoIAFYOCghtc 3JXyHrietxVhi2RcEJTQ+kuUK4xaCx3kUplRKi9sjj5rTuotJUIyfJPNlRLSSCErmXVQ 9Az/E2MJ4Gfcc++KIlWDeGEX7/5AJq1aixxyA7mVZMZ63JxHbyiLGJTQPfZgHauuDmsZ lIEMKFh507UBaOC6D2xaCOyzxVBVgWPtmspVEtyd+dPEgMEAvwpzo+7VcyBkWZ/6gR1h jfrA== X-Received: by 10.180.24.225 with SMTP id x1mr18257225wif.14.1407686201789; Sun, 10 Aug 2014 08:56:41 -0700 (PDT) Received: from flagship.roarinelk.net (62-47-45-86.adsl.highway.telekom.at. [62.47.45.86]) by mx.google.com with ESMTPSA id fe5sm32950861wjc.12.2014.08.10.08.56.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 10 Aug 2014 08:56:41 -0700 (PDT) From: Manuel Lauss To: linux-spi@vger.kernel.org Cc: Manuel Lauss , Himangi Saraogi Subject: [PATCH] spi: spi-au1550: fix build failure introduced in recent "bugfix" Date: Sun, 10 Aug 2014 17:56:31 +0200 Message-Id: <1407686191-87706-1-git-send-email-manuel.lauss@gmail.com> X-Mailer: git-send-email 2.0.4 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.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Commit 30670539b867d08c1931abd4815699de5887ee58 (spi: au1550: Fix bug in deallocation of memory) replaced working lines of code with an obvious and untested copy-paste leading to a build failure. This patch fixes the "bugfix". Cc: Himangi Saraogi Signed-off-by: Manuel Lauss --- drivers/spi/spi-au1550.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-au1550.c b/drivers/spi/spi-au1550.c index 40c3d43..f40b34c 100644 --- a/drivers/spi/spi-au1550.c +++ b/drivers/spi/spi-au1550.c @@ -945,7 +945,7 @@ static int au1550_spi_remove(struct platform_device *pdev) spi_bitbang_stop(&hw->bitbang); free_irq(hw->irq, hw); iounmap((void __iomem *)hw->regs); - release_mem_region(r->start, sizeof(psc_spi_t)); + release_mem_region(hw->ioarea->start, sizeof(psc_spi_t)); if (hw->usedma) { au1550_spi_dma_rxtmp_free(hw);