public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/3] keystone, clk: revert ugly work-around by #ifdef CONFIG_CLK
@ 2016-09-26 11:45 Masahiro Yamada
  2016-09-26 11:45 ` [U-Boot] [PATCH 1/3] ARM: keystone: remove declaration of unused functions Masahiro Yamada
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Masahiro Yamada @ 2016-09-26 11:45 UTC (permalink / raw)
  To: u-boot


Commit 82f5279b0cd99a9163d34cfe926d0316d9dc0d37 chose
a very bad way to suppress the KeyStone boards failure.

The root cause was that KeyStone is using the same function name clk_get_rate
as the clk-uclass one, but the probotype is completely different.
So, if both <clk.h> and <config.h> are included from a single file
(drivers/serial/ns16550.c does so), it fails to build.

The function is only used for KeyStone specific files,
so we can rename it to avoid name space conflict.



Masahiro Yamada (3):
  ARM: keystone: remove declaration of unused functions
  ARM: keystone: rename clk_get_rate() to ks_clk_get_rate()
  Revert "ns16650: Make sure we have CONFIG_CLK set before using
    infrastructure"

 arch/arm/include/asm/ti-common/keystone_net.h |  4 ++--
 arch/arm/mach-keystone/clock.c                | 24 ++++++++++++------------
 arch/arm/mach-keystone/cmd_clock.c            |  2 +-
 arch/arm/mach-keystone/include/mach/clock.h   |  4 +---
 drivers/serial/ns16550.c                      |  7 ++-----
 include/clk.h                                 | 25 +++++++++++++------------
 include/configs/ti_armv7_keystone2.h          |  8 ++++----
 7 files changed, 35 insertions(+), 39 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-10-08 17:07 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-26 11:45 [U-Boot] [PATCH 0/3] keystone, clk: revert ugly work-around by #ifdef CONFIG_CLK Masahiro Yamada
2016-09-26 11:45 ` [U-Boot] [PATCH 1/3] ARM: keystone: remove declaration of unused functions Masahiro Yamada
2016-09-27  3:04   ` Lokesh Vutla
2016-09-27 17:45   ` Tom Rini
2016-10-08 17:07   ` [U-Boot] [U-Boot, " Tom Rini
2016-09-26 11:45 ` [U-Boot] [PATCH 2/3] ARM: keystone: rename clk_get_rate() to ks_clk_get_rate() Masahiro Yamada
2016-09-27  0:34   ` Simon Glass
2016-09-27  3:04   ` Lokesh Vutla
2016-09-27 17:44   ` Tom Rini
2016-09-28  5:14   ` Masahiro Yamada
2016-10-08 17:07   ` [U-Boot] [U-Boot, " Tom Rini
2016-09-26 11:45 ` [U-Boot] [PATCH 3/3] Revert "ns16650: Make sure we have CONFIG_CLK set before using infrastructure" Masahiro Yamada
2016-09-27  0:34   ` Simon Glass
2016-09-27 17:44   ` Tom Rini
2016-10-08 17:07   ` [U-Boot] [U-Boot, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox