From patchwork Mon Jun 27 12:52:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 9200485 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 421DB60752 for ; Mon, 27 Jun 2016 12:54:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3133628403 for ; Mon, 27 Jun 2016 12:54:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 249002837F; Mon, 27 Jun 2016 12:54:23 +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 B0A5E2837F for ; Mon, 27 Jun 2016 12:54:22 +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 1bHW26-0005kQ-JE; Mon, 27 Jun 2016 12:52:58 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bHW23-0005XM-Go for linux-arm-kernel@lists.infradead.org; Mon, 27 Jun 2016 12:52:56 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O9F001JJL3KLR60@mailout2.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 27 Jun 2016 13:52:32 +0100 (BST) X-AuditID: cbfec7f5-f792a6d000001302-d5-57712190795c Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 8F.11.04866.09121775; Mon, 27 Jun 2016 13:52:32 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O9F00HASL3HSOA0@eusync3.samsung.com>; Mon, 27 Jun 2016 13:52:32 +0100 (BST) From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: s3c2410fb: Register cpufreq notifier only on S3C24xx Date: Mon, 27 Jun 2016 14:52:25 +0200 Message-id: <1467031945-10486-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupiluLIzCtJLcpLzFFi42I5/e/4Vd0JioXhBnfXCltsnLGe1eL1C0OL /sevmS02Pb7GanGi7wOrxeVdc9gsZpzfx2Sx7uELJov182+xOXB6vLpwh8Vj06pONo/NS+o9 +rasYvQ4fmM7k8fnTXIBbFFcNimpOZllqUX6dglcGdd/PGIueMZd0T5pL3MDYxtXFyMnh4SA icS8qxfZIGwxiQv31gPZXBxCAksZJdpX32eFcBqZJFbM38YCUsUmYCyxefkSsCoRgQNMEg+f T2YFSTALWEhs3bqaHcQWFvCRaLvZxAxiswioSjw78AWsmVfAXeLL5LtQ6+QkTh6bzDqBkXsB I8MqRtHU0uSC4qT0XCO94sTc4tK8dL3k/NxNjJAQ+rqDcekxq0OMAhyMSjy8F2QKwoVYE8uK K3MPMUpwMCuJ8B5RKAwX4k1JrKxKLcqPLyrNSS0+xCjNwaIkzjtz1/sQIYH0xJLU7NTUgtQi mCwTB6dUA2PdUnnOX2nyr4u7Z1wTOrDe30ht78fswKMOx1277c6lMxruPJ7AeP1o/qv7utVa Xi99Qve9/6QWX5tu+vqpwY/qmkf/jjmb7p32kHOmyy8Gd++1N/ln/L65Z5FiHKeK7KSPQjU7 tIOSN4uzN5gU+sVwbjm1Id8jsfvOHY+r/UWZ8cYLpI54eSuxFGckGmoxFxUnAgCYeDW8HQIA AA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160627_055255_707768_D477B4C9 X-CRM114-Status: GOOD ( 17.40 ) 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/video/fbdev/s3c2410fb.c | 2 +- drivers/video/fbdev/s3c2410fb.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/s3c2410fb.c b/drivers/video/fbdev/s3c2410fb.c index 0dd86be36afb..a67e4567e656 100644 --- a/drivers/video/fbdev/s3c2410fb.c +++ b/drivers/video/fbdev/s3c2410fb.c @@ -767,7 +767,7 @@ static irqreturn_t s3c2410fb_irq(int irq, void *dev_id) return IRQ_HANDLED; } -#ifdef CONFIG_CPU_FREQ +#ifdef CONFIG_ARM_S3C24XX_CPUFREQ static int s3c2410fb_cpufreq_transition(struct notifier_block *nb, unsigned long val, void *data) diff --git a/drivers/video/fbdev/s3c2410fb.h b/drivers/video/fbdev/s3c2410fb.h index 47a17bd23011..cdd11e2f8859 100644 --- a/drivers/video/fbdev/s3c2410fb.h +++ b/drivers/video/fbdev/s3c2410fb.h @@ -32,7 +32,7 @@ struct s3c2410fb_info { unsigned long clk_rate; unsigned int palette_ready; -#ifdef CONFIG_CPU_FREQ +#ifdef CONFIG_ARM_S3C24XX_CPUFREQ struct notifier_block freq_transition; #endif