From patchwork Tue Mar 26 09:27:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 2335481 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id EE478DF264 for ; Tue, 26 Mar 2013 09:28:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933215Ab3CZJ15 (ORCPT ); Tue, 26 Mar 2013 05:27:57 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:42583 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756982Ab3CZJ1s (ORCPT ); Tue, 26 Mar 2013 05:27:48 -0400 Received: by mail-wi0-f176.google.com with SMTP id hm14so443038wib.3 for ; Tue, 26 Mar 2013 02:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=/8tDXCD6UtHKn3ZbP0e8C3Nomf+oKUr9isvkpzSysD4=; b=whOHDv9LfpQ/Ey6Elc+PXCPFARhc+MTxEd9fGFIj0MtlktKwqyV+cNufwDL724UFNh 14p/H7nB63vEy5y1pbpnRPSnhhicVo4qUPI6LhR9tkT+WkEhhCurSI4fYrUrDpCjr6b5 cI28e6VNpUJ7RAhY6zyKydzue+W6maK2CAGZqCDsNa+jsBELeu0jl7zdbKTPzrMOMKgQ yMxs1IdXlegsikd/CpgWuwf9uNx+cmtXGkEw8PwC78XLjlLpjjsEthp05Q0ogdveiUcB BZC7KFlz3U17ZPPMYNYPnDIKcK9Ak/xiUHkwzNaJIcYEowx1Bm1tWWfMmqBvfa1ZV7qs h4tw== X-Received: by 10.180.10.105 with SMTP id h9mr1754373wib.34.1364290066861; Tue, 26 Mar 2013 02:27:46 -0700 (PDT) Received: from ubi.home (32.pool85-58-18.dynamic.orange.es. [85.58.18.32]) by mx.google.com with ESMTPS id g4sm2046143wib.11.2013.03.26.02.27.45 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 26 Mar 2013 02:27:46 -0700 (PDT) From: Matthias Brugger To: Ben Dooks , Kukjin Kim , Grant Likely , Mark Brown , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, spi-devel-general@lists.sourceforge.net, linux-kernel@vger.kernel.org Cc: Matthias Brugger Subject: [PATCH] spi: spi-s3c64xx.c Remove unused argument. Date: Tue, 26 Mar 2013 10:27:35 +0100 Message-Id: <1364290055-2970-1-git-send-email-matthias.bgg@gmail.com> X-Mailer: git-send-email 1.7.11.7 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The pointer to the driver data is never used to get the slave controller data. We can delete the unused argument from the function. Signed-off-by: Matthias Brugger --- drivers/spi/spi-s3c64xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index e862ab8..7f5f8ee 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -817,7 +817,6 @@ static int s3c64xx_spi_unprepare_transfer(struct spi_master *spi) } static struct s3c64xx_spi_csinfo *s3c64xx_get_slave_ctrldata( - struct s3c64xx_spi_driver_data *sdd, struct spi_device *spi) { struct s3c64xx_spi_csinfo *cs; @@ -874,7 +873,7 @@ static int s3c64xx_spi_setup(struct spi_device *spi) sdd = spi_master_get_devdata(spi->master); if (!cs && spi->dev.of_node) { - cs = s3c64xx_get_slave_ctrldata(sdd, spi); + cs = s3c64xx_get_slave_ctrldata(spi); spi->controller_data = cs; }