From patchwork Thu Aug 2 07:02:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10453 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8824B23E57 for ; Thu, 2 Aug 2012 07:04:00 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 4CC99A1873A for ; Thu, 2 Aug 2012 07:04:00 +0000 (UTC) Received: by yhpp61 with SMTP id p61so8239588yhp.11 for ; Thu, 02 Aug 2012 00:03:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=VI/K1fYVlsOEZ4WKvAaumgx75lX/EXPs1KvW+V3ChpQ=; b=Tqm3KsQAvu1sPD3dEj63jreYGnGj1dZRWjWpFMOPlZNn4/HJfcVxVpMb8oLM9r9vky YI5Aj/zCJijsiQvKLgSWbbusfS0+hqzpO4Z13MIa6jvUGmegTMcSD6Wuwz49Vc7JvH6U hL4GiIyjRCm/ii3JqbEUmldgV6LBpIsprctE/DK4CQTuf8fhT9ISBWDEFs3Azzvwcfbv 1xuXntcjJa8EqdEjjJJIG0fTmj38K6i0PGQ079pBJ+fFZerOnuDtCgW4+S3/5r4FrN54 aQCSotuE+hZ1BeiVReAMuTdaaswmwaGZNqHhfoKE/CsvYwBZmaiinNEhB+yMXEXys8jB n51g== Received: by 10.50.160.168 with SMTP id xl8mr1744554igb.25.1343891039551; Thu, 02 Aug 2012 00:03:59 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.87.40 with SMTP id u8csp238978igz; Thu, 2 Aug 2012 00:03:59 -0700 (PDT) Received: by 10.236.193.105 with SMTP id j69mr19715648yhn.21.1343891038913; Thu, 02 Aug 2012 00:03:58 -0700 (PDT) Received: from mail-yx0-f178.google.com (mail-yx0-f178.google.com [209.85.213.178]) by mx.google.com with ESMTPS id e22si5248444yhh.132.2012.08.02.00.03.58 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Aug 2012 00:03:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.213.178 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.213.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.213.178 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by yenl6 with SMTP id l6so9523016yen.37 for ; Thu, 02 Aug 2012 00:03:58 -0700 (PDT) Received: by 10.50.202.5 with SMTP id ke5mr1599157igc.64.1343891038202; Thu, 02 Aug 2012 00:03:58 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ud8sm11026500igb.4.2012.08.02.00.03.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Aug 2012 00:03:57 -0700 (PDT) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: thierry.reding@avionic-design.de, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] pwm: Add missing static storage class specifiers in core.c file Date: Thu, 2 Aug 2012 12:32:42 +0530 Message-Id: <1343890962-25467-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkM3B6en2iJeA8PdkmoNTxL1aKKxA4LZQIf6yBbvXVFkQ15qjbPUPk/g32rC8CcuzAM35kp Fixes the following sparse warnings: drivers/pwm/core.c:152:6: warning: symbol 'of_pwmchip_add' was not declared. Should it be static? drivers/pwm/core.c:165:6: warning: symbol 'of_pwmchip_remove' was not declared. Should it be static? Signed-off-by: Sachin Kamat --- drivers/pwm/core.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index ecb7690..4a8bdfa 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -149,7 +149,7 @@ static struct pwm_device *of_pwm_simple_xlate(struct pwm_chip *pc, return pwm; } -void of_pwmchip_add(struct pwm_chip *chip) +static void of_pwmchip_add(struct pwm_chip *chip) { if (!chip->dev || !chip->dev->of_node) return; @@ -162,7 +162,7 @@ void of_pwmchip_add(struct pwm_chip *chip) of_node_get(chip->dev->of_node); } -void of_pwmchip_remove(struct pwm_chip *chip) +static void of_pwmchip_remove(struct pwm_chip *chip) { if (chip->dev && chip->dev->of_node) of_node_put(chip->dev->of_node);