From patchwork Thu Feb 27 02:27:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 3729991 X-Patchwork-Delegate: broonie@sirena.org.uk 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 45F77BF13A for ; Thu, 27 Feb 2014 02:27:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5589F20204 for ; Thu, 27 Feb 2014 02:27:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 678B32020A for ; Thu, 27 Feb 2014 02:27:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753908AbaB0C1h (ORCPT ); Wed, 26 Feb 2014 21:27:37 -0500 Received: from mail-pb0-f43.google.com ([209.85.160.43]:50522 "EHLO mail-pb0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753246AbaB0C1g (ORCPT ); Wed, 26 Feb 2014 21:27:36 -0500 Received: by mail-pb0-f43.google.com with SMTP id um1so91397pbc.16 for ; Wed, 26 Feb 2014 18:27:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=LaT8m9z2+rG7lC1LKT1i3deZJjTHFjrvyXcXXrYL+sw=; b=jxXn725wUxs49efIj13JdEsQf0Jm8YZPjVzRM/cvkSmP56Ew26VI6yzVt6E9TzG90v zMcUtwBusgIZYUTvKi+jW676vb1DEosoOrdneY0buRzA30dDL97stRxg9MJ9qBtfXyut tjnCiuZHp+2YdkiF1GfLPfwPpHaNPcmZGHnqjDAmVS8XbUD3HgUT1nJaKqchG47yE2t5 s0r0xWec5bRF5PxeAllz8nDs4ya/9qTaVUHDDMjgnh6RKyPHle0n44GXqZTm5vxGTIdr JwAoF6cQ/wDiw/B1gXqGJvdYGgLRM+YGKFHYazMyfActfPJHnKNmY5+3QVGHG3lsXMM4 WAzg== X-Gm-Message-State: ALoCoQkKf4DgI6AaddfQ+o23ijCUX6jkR9o4quJnG10N3VUTCI1mDw2usqBi8sQXrezA0Q89JUru X-Received: by 10.68.254.103 with SMTP id ah7mr10339891pbd.159.1393468055808; Wed, 26 Feb 2014 18:27:35 -0800 (PST) Received: from [192.168.0.102] (218-164-131-56.dynamic.hinet.net. [218.164.131.56]) by mx.google.com with ESMTPSA id my6sm2919183pbc.36.2014.02.26.18.27.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 18:27:35 -0800 (PST) Message-ID: <1393468050.25819.1.camel@phoenix> Subject: [PATCH] spi: sh-hspi: Remove hspi_cleanup function From: Axel Lin To: Mark Brown Cc: Kuninori Morimoto , linux-spi@vger.kernel.org Date: Thu, 27 Feb 2014 10:27:30 +0800 X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 hspi_cleanup() is doing nothing except print a non-useful debug message, so remove it. Also remove unused hspi2info macro. Signed-off-by: Axel Lin Acked-by: Geert Uytterhoeven --- drivers/spi/spi-sh-hspi.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/spi/spi-sh-hspi.c b/drivers/spi/spi-sh-hspi.c index 3c5d3b8..48becd2 100644 --- a/drivers/spi/spi-sh-hspi.c +++ b/drivers/spi/spi-sh-hspi.c @@ -46,8 +46,6 @@ /* SPSR */ #define RXFL (1 << 2) -#define hspi2info(h) (h->dev->platform_data) - struct hspi_priv { void __iomem *addr; struct spi_master *master; @@ -230,14 +228,6 @@ static int hspi_transfer_one_message(struct spi_master *master, return ret; } -static void hspi_cleanup(struct spi_device *spi) -{ - struct hspi_priv *hspi = spi_master_get_devdata(spi->master); - struct device *dev = hspi->dev; - - dev_dbg(dev, "%s cleanup\n", spi->modalias); -} - static int hspi_probe(struct platform_device *pdev) { struct resource *res; @@ -284,7 +274,6 @@ static int hspi_probe(struct platform_device *pdev) pm_runtime_enable(&pdev->dev); master->bus_num = pdev->id; - master->cleanup = hspi_cleanup; master->mode_bits = SPI_CPOL | SPI_CPHA; master->dev.of_node = pdev->dev.of_node; master->auto_runtime_pm = true;