From patchwork Sun Jan 11 16:50:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5617001 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5CF96C058E for ; Tue, 13 Jan 2015 01:26:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 18CFF204DF for ; Tue, 13 Jan 2015 01:26:07 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 40287202F8 for ; Tue, 13 Jan 2015 01:26:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B4C736E56B; Mon, 12 Jan 2015 17:26:00 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f170.google.com (mail-we0-f170.google.com [74.125.82.170]) by gabe.freedesktop.org (Postfix) with ESMTP id A276F6E159 for ; Sun, 11 Jan 2015 08:47:25 -0800 (PST) Received: by mail-we0-f170.google.com with SMTP id w61so15392922wes.1 for ; Sun, 11 Jan 2015 08:47:24 -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=3leXjOpcETzbLsg8eUfe2WmeflZBStg22HFRe/dyI5U=; b=TaftuCsw8OoYEZzpUeBUhEpVJw8mQKSrJSoc1AtMwQCOEUSU2bTZqXcXoQfrH9WZR/ SEN1kIZZQDeVtWm/lcMFhe+A5404InQi3QEjF7UvouSVfYQ5uaW3OIiqhx6wAnof2lQM fr5d3YfHAr3sBDNCtEoShHqWXbX/gvwn2/eZn32LSdIu/HHLxgtY+U652UESrNj1TKJh 5Xvjo3L6PCWBaC2NFo7ls2NU0X+NCn8gQC/pJqJ2cuVFuwlXEDemf/F1SsDYvf7sq2cI mpcYGKBfpQwbIDtnfK24gy0cWmqYBf+mBBIUGWcdEIp5HwEX5tUDFMpMzlJNKZqW/M0y ln9w== X-Gm-Message-State: ALoCoQmUMwxRLAAO02Gp8FQvoCmCsFCiHm6t9CP0/CY8cHucwc2CTm0B5mnUjNcF6v0kKxPrdUSf X-Received: by 10.194.2.240 with SMTP id 16mr18788859wjx.108.1420994844378; Sun, 11 Jan 2015 08:47:24 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id gb10sm18173481wjb.21.2015.01.11.08.47.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Jan 2015 08:47:23 -0800 (PST) From: Rickard Strandqvist To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= Subject: [PATCH] drm: radeon: si_dpm: Remove unused function Date: Sun, 11 Jan 2015 17:50:30 +0100 Message-Id: <1420995030-21195-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-Mailman-Approved-At: Mon, 12 Jan 2015 17:25:56 -0800 Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Rickard Strandqvist X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Remove the function si_dpm_reset_asic() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/gpu/drm/radeon/si_dpm.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c index 676e6c2..5e2fb9a 100644 --- a/drivers/gpu/drm/radeon/si_dpm.c +++ b/drivers/gpu/drm/radeon/si_dpm.c @@ -6154,13 +6154,6 @@ void si_dpm_post_set_power_state(struct radeon_device *rdev) } -void si_dpm_reset_asic(struct radeon_device *rdev) -{ - si_restrict_performance_levels_before_switch(rdev); - si_disable_ulv(rdev); - si_set_boot_state(rdev); -} - void si_dpm_display_configuration_changed(struct radeon_device *rdev) { si_program_display_gap(rdev);