From patchwork Sun Mar 6 10:33:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 8512601 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 C262CC0553 for ; Sun, 6 Mar 2016 10:33:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BC0CF2017D for ; Sun, 6 Mar 2016 10:33:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A726620149 for ; Sun, 6 Mar 2016 10:33:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751333AbcCFKdt (ORCPT ); Sun, 6 Mar 2016 05:33:49 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34166 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751203AbcCFKds (ORCPT ); Sun, 6 Mar 2016 05:33:48 -0500 Received: by mail-pa0-f49.google.com with SMTP id fy10so61081218pac.1 for ; Sun, 06 Mar 2016 02:33:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=Fll8qcM8u5gTkB5GJQ3cJofoHOX3anRdwcUXmRxVSIs=; b=jAsnsnu6LG+kczqgTaldNtm7/Wc/F8MHcbv28+jVZCjhSbNDv/To3Zw3hxG1y8vSI9 LC81I371lBrQTlPlCO6Oe3B6tI+cqGwySxpOv9Qv36pVVSzwtkf4WFFS9lWcMtFczCYd n6IQUvnnU+0KZiGvfstkKHm7l9nzPAfGHrfuc4atZsVFauVuPawBYl4uZsLx5ogBX623 q5qN6LS7ZPEm/nre3wd1nhXqscErIQvp61x/6i1rmI01mUfuFmyeDg/1XX0gunas+sMU +RO6dER4p228VCfvIBJ33AwjCtvu941Vml1qcfKCz4zeujVsVGVw+1MNp/EparQYpTlE Yljg== 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:mime-version :content-transfer-encoding; bh=Fll8qcM8u5gTkB5GJQ3cJofoHOX3anRdwcUXmRxVSIs=; b=dXBYT+mvVt1ek9rUOPIUOI7iR7Y6Vy7iPZVGm4T2VCFiXsJvNIijwYiUmWN4VM5K/N k5CxFkm5a69UDv9ez2sQOx/ZpDEgSgPQAchl8Ltp63qwJPXltZ0qQ64nlauQ3oYsRUt8 6G0wJPBQ9Xc399i1uTzdrx3bFJBgV0qxFe8NF6DrjTcXdxwJe2VT0W0m2IHOccQmjRoC jXeKk5LpRU43nb8V/sJuU0OCzQl70a0JAb2SEzFRUn2vGWdQTWZd9vW4nzSHENk0rTbk kph190P4ZzgykKesLf8pscxux14tu9p2pohKzLosWPNORgwm6bHDg3KrbiNFGVYRuvGC u0/g== X-Gm-Message-State: AD7BkJJLxvqKkqkgPCOt0jBrfihCQnpRQCnoJEWF+JCxXCJb/d3TkcO6oY50K0SybfJb2Q== X-Received: by 10.66.233.194 with SMTP id ty2mr24921800pac.126.1457260428184; Sun, 06 Mar 2016 02:33:48 -0800 (PST) Received: from phoenix (36-239-206-66.dynamic-ip.hinet.net. [36.239.206.66]) by smtp.gmail.com with ESMTPSA id b79sm17144981pfj.25.2016.03.06.02.33.45 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 06 Mar 2016 02:33:46 -0800 (PST) Message-ID: <1457260423.25403.1.camel@ingics.com> Subject: [PATCH] phy: exynos5-usbdrd: Remove "static" from local variable From: Axel Lin To: Kishon Vijay Abraham I Cc: Jaewon Kim , Vivek Gautam , Patrice Chotard , linux-samsung-soc@vger.kernel.org Date: Sun, 06 Mar 2016 18:33:43 +0800 X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 The 'reg' local variable does not need to be static. Signed-off-by: Axel Lin --- drivers/phy/phy-exynos5-usbdrd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-exynos5-usbdrd.c b/drivers/phy/phy-exynos5-usbdrd.c index 20696f5..07ed608 100644 --- a/drivers/phy/phy-exynos5-usbdrd.c +++ b/drivers/phy/phy-exynos5-usbdrd.c @@ -249,7 +249,7 @@ static void exynos5_usbdrd_phy_isol(struct phy_usb_instance *inst, static unsigned int exynos5_usbdrd_pipe3_set_refclk(struct phy_usb_instance *inst) { - static u32 reg; + u32 reg; struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst); /* restore any previous reference clock settings */ @@ -295,7 +295,7 @@ exynos5_usbdrd_pipe3_set_refclk(struct phy_usb_instance *inst) static unsigned int exynos5_usbdrd_utmi_set_refclk(struct phy_usb_instance *inst) { - static u32 reg; + u32 reg; struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst); /* restore any previous reference clock settings */