clk: of: fix clk_of_table generation
We used to collect all sections beginning with __clk_of_table_ in a single
section in the linker using KEEP(*(.__clk_of_table_*)). That the sentinel
entry ended up as the last entry was pure luck, but not always the case.

Instead of putting all entries in different sections we now put all entries
in the same section. Only the sentinel entry gets its own section and is
collected by the linker separately.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reported-by: Andreas Willig <andreas.willig@rafi.de>
Tested-by:  Andreas Willig <andreas.willig@rafi.de>
1 parent e349701 commit dae7498d2c49f812d513123908074f577e86efee
@Sascha Hauer Sascha Hauer authored on 10 Jun 2015
Showing 2 changed files
View
include/asm-generic/barebox.lds.h
View
include/linux/clk.h