From: Guenter Roeck <linux@roeck-us.net>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org,
Guenter Roeck <linux@roeck-us.net>,
Ezequiel Garcia <ezequiel.garcia@imgtec.com>,
Daniel Lezcano <daniel.lezcano@linaro.org>
Subject: [PATCH -next] mips: Enable common clock framework for malta and sead3
Date: Sat, 22 Aug 2015 02:40:41 -0700 [thread overview]
Message-ID: <1440236441-10815-1-git-send-email-linux@roeck-us.net> (raw)
Since commit e69b3d70ac57 ("CLOCKSOURCE: mips-gic: Update clockevent
frequency on clock rate changes"), malta_defconfig and sead3_defconfig
fail to build as follows.
drivers/clocksource/mips-gic-timer.c: In function 'gic_clk_notifier':
drivers/clocksource/mips-gic-timer.c:102:16:
error: 'POST_RATE_CHANGE' undeclared
drivers/clocksource/mips-gic-timer.c:103:48:
error: dereferencing pointer to incomplete type
drivers/clocksource/mips-gic-timer.c: In function 'gic_clocksource_of_init':
drivers/clocksource/mips-gic-timer.c:209:3:
error: implicit declaration of function 'clk_notifier_register'
Fix by enabling COMMON_CLK for both configurations. Build tested for
malta_defconfig and sead3_defconfig. Tested with qemu malta emulation.
Fixes: e69b3d70ac57 ("CLOCKSOURCE: mips-gic: Update clockevent frequency on clock rate changes")
Cc: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
arch/mips/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 09b8fe95aeb0..7af84b4d3269 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -409,6 +409,7 @@ config MIPS_MALTA
select CEVT_R4K
select CSRC_R4K
select CLKSRC_MIPS_GIC
+ select COMMON_CLK
select DMA_MAYBE_COHERENT
select GENERIC_ISA_DMA
select HAVE_PCSPKR_PLATFORM
@@ -459,6 +460,7 @@ config MIPS_SEAD3
select CEVT_R4K
select CSRC_R4K
select CLKSRC_MIPS_GIC
+ select COMMON_CLK
select CPU_MIPSR2_IRQ_VI
select CPU_MIPSR2_IRQ_EI
select DMA_NONCOHERENT
--
2.1.4
reply other threads:[~2015-08-22 9:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1440236441-10815-1-git-send-email-linux@roeck-us.net \
--to=linux@roeck-us.net \
--cc=daniel.lezcano@linaro.org \
--cc=ezequiel.garcia@imgtec.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®