From patchwork Sat Dec 20 22:42:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 423137 X-Patchwork-Delegate: michael@ellerman.id.au Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 12EBF1400E7 for ; Sun, 21 Dec 2014 09:40:29 +1100 (AEDT) Received: from ozlabs.org (ozlabs.org [103.22.144.67]) by lists.ozlabs.org (Postfix) with ESMTP id 03A1E1A09D2 for ; Sun, 21 Dec 2014 09:40:29 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id A6D4F1A065B for ; Sun, 21 Dec 2014 09:39:49 +1100 (AEDT) Received: by mail-wi0-f176.google.com with SMTP id ex7so5039544wid.9 for ; Sat, 20 Dec 2014 14:39:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9jQ2MtSgLrVNZ9435aQ/pbZKdIJFnmG6K6Aq95cn9gg=; b=HXOIZJljSG8dduFMgpils6XweSZGFLWqqK/viK/H2ydq6oe292e8wuoyF7ztxuB5UO 8CnDldd3SPDfrSHJRcFWuQSxtbh0zy6pxhI7YBtGM0Zpq1dwo5aOSHqDNdokMxlVkAA3 Btc8pFSIyRlKZ8GTvOsbl0pJlKwpvntHyJjKuaS+jBGQB1IftL4+n/LpSecaeGtpjTBH uGoeQDWNAO5/hoBRSUOFmPZ0xJraXhUru4xdUfdG/jq52wH9JR7g7AQ3wsSR+sVHoXLl 5Hg9YtEfUzAvMepV+hQijXWxeFLS1YrD0Fmvs+ycnjHqUwJILsDWUB72BWorqszxbyVG /QRQ== X-Gm-Message-State: ALoCoQmCJD8ht2AUJxN9oNYqwQ5afKc7nSKJStndwRYQ276DF1TwA71Hoc0mxTsFELExjDEjMRoz X-Received: by 10.180.198.209 with SMTP id je17mr17756165wic.17.1419115185605; Sat, 20 Dec 2014 14:39:45 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id cs8sm7388375wib.1.2014.12.20.14.39.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Dec 2014 14:39:45 -0800 (PST) From: Rickard Strandqvist To: Benjamin Herrenschmidt , Paul Mackerras Subject: [PATCH] arch: powerpc: platforms: embedded6xx: mpc7448_hpc2.c: Remove some unused functions Date: Sat, 20 Dec 2014 23:42:32 +0100 Message-Id: <1419115353-12374-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Rickard Strandqvist X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Removes some functions that are not used anywhere: mpc7448_hpc2_halt() mpc7448_hpc2_power_off() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c index beeaf4a..df4ad95 100644 --- a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c +++ b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c @@ -156,17 +156,6 @@ void mpc7448_hpc2_restart(char *cmd) for (;;) ; /* Spin until reset happens */ } -void mpc7448_hpc2_power_off(void) -{ - local_irq_disable(); - for (;;) ; /* No way to shut power off with software */ -} - -void mpc7448_hpc2_halt(void) -{ - mpc7448_hpc2_power_off(); -} - /* * Called very early, device-tree isn't unflattened */