From patchwork Sat Feb 12 17:06:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Daniel Kachhap X-Patchwork-Id: 121 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:40:09 -0000 Delivered-To: patches@linaro.org Received: by 10.147.124.5 with SMTP id b5cs207719yan; Thu, 10 Feb 2011 22:37:41 -0800 (PST) Received: by 10.103.249.3 with SMTP id b3mr58280mus.115.1297406260509; Thu, 10 Feb 2011 22:37:40 -0800 (PST) Received: from mail-bw0-f50.google.com (mail-bw0-f50.google.com [209.85.214.50]) by mx.google.com with ESMTPS id x18si286896fal.150.2011.02.10.22.37.37 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Feb 2011 22:37:39 -0800 (PST) Received-SPF: pass (google.com: domain of amitdanielk@gmail.com designates 209.85.214.50 as permitted sender) client-ip=209.85.214.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of amitdanielk@gmail.com designates 209.85.214.50 as permitted sender) smtp.mail=amitdanielk@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by bwg12 with SMTP id 12so3428934bwg.37 for ; Thu, 10 Feb 2011 22:37:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer; bh=P7W/z67OeuAeEOZ3XsUpSeFwsg/en/Xq/GtQdcCzp04=; b=j1Yumox5puQp+aPlnQGeVxEprdTObynePoqIxTOxvfQqJc/fFnYvcz2n+BZSXaV0Qp M3myjW2Sij5ObXCJpKe7fSh4qit+8Qb4XBZhZS1Uknz59LdBliSv5XZOOrockfmTkae3 FxKDhHjAFW2gXRdUTD+gMQEhE+ZIqgxYjQ9ew= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; b=lYjHPzs8CdJh5peym5/irwGqF/EyLXj8HwmvmLVHBB0jVCb78Clk8rxaYjk4xorZBk 5YB/ZB5iMxdWN46AvAK2dDoWj+Ne+YvOjA/0Xn4pu8ubOyPZy7506+kiQrBVDS/IywPZ f1QMqEoSiGQCql1sV7AfultRlzZMaNjrp1TPU= Received: by 10.204.60.17 with SMTP id n17mr706535bkh.190.1297406257557; Thu, 10 Feb 2011 22:37:37 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id v25sm219079bkt.6.2011.02.10.22.37.32 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Feb 2011 22:37:36 -0800 (PST) Sender: amit kachhap From: Amit Daniel Kachhap To: kgene.kim@samsung.com, linaro-dev@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org, ben-linux@fluff.org, amit.kachhap@linaro.org, patches@linaro.org Subject: [PATCH] ARM: SAMSUNG: Removing dependency on CONFIG_PM_DEBUG for clock debugging Date: Sat, 12 Feb 2011 12:06:14 -0500 Message-Id: <1297530374-32635-1-git-send-email-amit.kachhap@linaro.org> X-Mailer: git-send-email 1.7.1 Enabling the macro CONFIG_PM_DEBUG is causing compilation error as all PM components are included which is not in mainline for samsung V310 platform, therefore, this patch removes the dependency on macro CONFIG_PM_DEBUG for clock debugging through debugfs interface. Signed-off-by: Amit Daniel Kachhap --- arch/arm/plat-samsung/clock.c | 4 ++-- arch/arm/plat-samsung/include/plat/clock.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/plat-samsung/clock.c b/arch/arm/plat-samsung/clock.c index 7728928..aca5a25 100644 --- a/arch/arm/plat-samsung/clock.c +++ b/arch/arm/plat-samsung/clock.c @@ -450,7 +450,7 @@ int __init s3c24xx_register_baseclocks(unsigned long xtal) return 0; } -#if defined(CONFIG_PM_DEBUG) && defined(CONFIG_DEBUG_FS) +#if defined(CONFIG_DEBUG_FS) /* debugfs support to trace clock tree hierarchy and attributes */ static struct dentry *clk_debugfs_root; @@ -538,4 +538,4 @@ err_out: } late_initcall(clk_debugfs_init); -#endif /* defined(CONFIG_PM_DEBUG) && defined(CONFIG_DEBUG_FS) */ +#endif /* defined(CONFIG_DEBUG_FS) */ diff --git a/arch/arm/plat-samsung/include/plat/clock.h b/arch/arm/plat-samsung/include/plat/clock.h index 9a82b88..f6180ab 100644 --- a/arch/arm/plat-samsung/include/plat/clock.h +++ b/arch/arm/plat-samsung/include/plat/clock.h @@ -47,7 +47,7 @@ struct clk { struct clk_ops *ops; int (*enable)(struct clk *, int enable); -#if defined(CONFIG_PM_DEBUG) && defined(CONFIG_DEBUG_FS) +#if defined(CONFIG_DEBUG_FS) struct dentry *dent; /* For visible tree hierarchy */ #endif };