From patchwork Thu May 8 11:17:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 4135331 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 12E349F23C for ; Thu, 8 May 2014 11:17:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 50C3C201EC for ; Thu, 8 May 2014 11:17:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 75AED20279 for ; Thu, 8 May 2014 11:17:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753233AbaEHLRP (ORCPT ); Thu, 8 May 2014 07:17:15 -0400 Received: from mail-vc0-f180.google.com ([209.85.220.180]:52236 "EHLO mail-vc0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753027AbaEHLRO (ORCPT ); Thu, 8 May 2014 07:17:14 -0400 Received: by mail-vc0-f180.google.com with SMTP id hy4so2221332vcb.39 for ; Thu, 08 May 2014 04:17:13 -0700 (PDT) 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=p00Trgm+XW71vJNErz/FMVkbxyw7QDOdBB0N2EtNxUA=; b=VJ9f3tmuXwsjeHlb+WbjMD63pkiUK/lOe6N47mndX6H+qX8v3/LIri8iaJVZs6hP1a ODxbseZtm/gY8+6jn6CkcWtJRPhGFz5ZhGc5iV9O0i4mGVwL+9mW5fU8uLC/jSd7/OaN MvBlNuR9NduS8Kw+3a14DRosrJ0yOVlhxJF5fEaMct5In2Z8eLiALKp7/mHspUuVZWMp FWQS4UARlyqZ+v1P86bOm1X3uya3Bq7hGhZ19bE7lLvgCJM5uOemN+qqBJz0vPryHWyC FcQAryUP84+3AQR0ixwVwMvg5RmZO4Z1qrDkObsmEi+IIR5Xz7hHr+rC9O0bk7jJBhqx hEmg== X-Gm-Message-State: ALoCoQn1jhzKlAO0HVk7zKLkLs2EtLDltgsvfyCLoZmuy6ud8ZLwDxLynawkCsamsWYHQh8B7RUf X-Received: by 10.220.2.142 with SMTP id 14mr321093vcj.48.1399547833237; Thu, 08 May 2014 04:17:13 -0700 (PDT) Received: from [192.168.0.102] (218-164-134-252.dynamic.hinet.net. [218.164.134.252]) by mx.google.com with ESMTPSA id iu10sm1143256vdb.4.2014.05.08.04.17.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 08 May 2014 04:17:11 -0700 (PDT) Message-ID: <1399547827.1783.1.camel@phoenix> Subject: [PATCH] spi: dw: Remove unused dw_spi_cleanup function From: Axel Lin To: Mark Brown Cc: Baruch Siach , linux-spi@vger.kernel.org Date: Thu, 08 May 2014 19:17:07 +0800 X-Mailer: Evolution 3.8.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=-7.5 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 The dw_spi_cleanup() function was removed by commit c63f5da00845 "spi: dw: Don't call kfree for memory allocated by devm_kzalloc". commit ec37e8e1f0e3 "spi: dw: migrate to generic queue infrastructure" added dw_spi_cleanup() but never use it. So now I got below build warning: CC [M] drivers/spi/spi-dw.o drivers/spi/spi-dw.c:609:13: warning: 'dw_spi_cleanup' defined but not used [-Wunused-function] Signed-off-by: Axel Lin Acked-by: Baruch Siach --- drivers/spi/spi-dw.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c index 9965e1b..29f3314 100644 --- a/drivers/spi/spi-dw.c +++ b/drivers/spi/spi-dw.c @@ -606,12 +606,6 @@ static int dw_spi_setup(struct spi_device *spi) return 0; } -static void dw_spi_cleanup(struct spi_device *spi) -{ - struct chip_data *chip = spi_get_ctldata(spi); - kfree(chip); -} - /* Restart the controller, disable all interrupts, clean rx fifo */ static void spi_hw_init(struct dw_spi *dws) {