2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 22:53:55 +08:00
linux-next/drivers/clk/hisilicon
Uwe Kleine-König 692d8328e8 clk: don't use __initconst for non-const arrays
The statement

	static const char *name[];

defines a modifiable array of pointers to constant chars. That is

	*name[0] = 'f';

is forbidden, but

	name[0] = "f";

is not. So marking an array that is defined as above with __initconst is
wrong. Either an additional const must be added such that the whole
definition reads:

	static const char *const name[] __initconst;

or where this is not possible __initdata must be used.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
2015-04-12 17:18:27 -07:00
..
clk-hi3620.c clk: don't use __initconst for non-const arrays 2015-04-12 17:18:27 -07:00
clk-hip04.c clk: hisi: remove static variable 2014-03-19 15:31:27 +08:00
clk-hix5hd2.c clk: don't use __initconst for non-const arrays 2015-04-12 17:18:27 -07:00
clk.c clk: hisi: add hisi_clk_register_gate 2014-05-12 11:30:18 +08:00
clk.h clk: hisi: add hisi_clk_register_gate 2014-05-12 11:30:18 +08:00
clkgate-separated.c clk: hisilicon: add common clock support 2013-12-04 18:36:45 +08:00
Makefile clk: hisi: add clk-hix5hd2.c 2014-05-12 11:30:32 +08:00