From patchwork Mon Jun 27 12:51:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 9200479 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B6D9B60752 for ; Mon, 27 Jun 2016 12:53:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8D962837F for ; Mon, 27 Jun 2016 12:53:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DAFA2857A; Mon, 27 Jun 2016 12:53:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3C31D2837F for ; Mon, 27 Jun 2016 12:53:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bHW1N-0005QW-CQ; Mon, 27 Jun 2016 12:52:13 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bHW1J-0005M7-Rw; Mon, 27 Jun 2016 12:52:10 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O9F00BMRL2A5T60@mailout1.w1.samsung.com>; Mon, 27 Jun 2016 13:51:46 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-bc-577121622aae Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 1B.28.05254.26121775; Mon, 27 Jun 2016 13:51:46 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O9F00MW6L27SZ80@eusync1.samsung.com>; Mon, 27 Jun 2016 13:51:46 +0100 (BST) From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] mtd: nand: s3c2410: Register cpufreq notifier only on S3C24xx Date: Mon, 27 Jun 2016 14:51:38 +0200 Message-id: <1467031898-1410-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDLMWRmVeSWpSXmKPExsVy+t/xy7pJioXhBn8vcFhsnLGe1eLAi4Us FkcurGW2mLhyMrPF6xeGFv2PXzNbbHp8jdXi8q45bBa7m5axW8w4v4/JYvLON4wO3B5PNl1k 9Ng56y67x+YVWh6bVnWyeWxeUu9xc16hR9+WVYwenzfJBXBEcdmkpOZklqUW6dslcGXc/XyZ seANZ8X7/a9YGhjnc3QxcnJICJhIXHg1hR3CFpO4cG89WxcjF4eQwFJGiT1ND5khnEYmiX9b XzCBVLEJGEtsXr4ErEpEYAKzxJnu+8wgCWYBC4mtW1eDjRIW8JPY2LEKLM4ioCqx6cd2NhCb V8BNYsq+h6wQ6+QkTh6bzDqBkXsBI8MqRtHU0uSC4qT0XEO94sTc4tK8dL3k/NxNjJAw+7KD cfExq0OMAhyMSjy8F2QKwoVYE8uKK3MPMUpwMCuJ8PIqFIYL8aYkVlalFuXHF5XmpBYfYpTm YFES5527632IkEB6YklqdmpqQWoRTJaJg1OqgTH61PTnlvrT8xetuBvynOdN4xLNE7PPxqd8 meWyc2P+vW8nz87tb932mztTo64kdpdIeQNLsMr+j7kpf+TimD6eCbqY9H+9oiFLROJrr2vH HVoMPIzsV260C8s+Jhn4xt+wy+nF9hqhPU6LTOJ0P+/IO2W4qdeOMfbK7V0nRTgE+q8v2l7w 7bMSS3FGoqEWc1FxIgCCJpzCLwIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160627_055210_064428_865DCADA X-CRM114-Status: GOOD ( 15.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartlomiej Zolnierkiewicz MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The driver registered for CPU frequency transitions to recalculate its clock when ARM clock frequency changes (ratio between frequencies of ARM's parent clock (fclk) and clock for peripherals remains fixed). This is needed only on S3C24xx platform when cpufreq driver is enabled so limit the ifdef to respective cpufreq Kconfig. Suggested-by: Marek Szyprowski Signed-off-by: Krzysztof Kozlowski --- drivers/mtd/nand/s3c2410.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index d9309cf0ce2e..8d440cc0f002 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -180,7 +180,7 @@ struct s3c2410_nand_info { enum s3c_cpu_type cpu_type; -#ifdef CONFIG_CPU_FREQ +#ifdef CONFIG_ARM_S3C24XX_CPUFREQ struct notifier_block freq_transition; #endif }; @@ -701,7 +701,7 @@ static void s3c2440_nand_write_buf(struct mtd_info *mtd, const u_char *buf, /* cpufreq driver support */ -#ifdef CONFIG_CPU_FREQ +#ifdef CONFIG_ARM_S3C24XX_CPUFREQ static int s3c2410_nand_cpufreq_transition(struct notifier_block *nb, unsigned long val, void *data)