Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a3babfc authored by Heiko Stübner's avatar Heiko Stübner Committed by Olof Johansson
Browse files

clk: samsung: clk-s3c2410-dlck: do not use PNAME macro as it declares __initdata



The originally used PNAME macro from the core samsung clock infrastructure
declares the created array as initdata, creating section mismatch warnings
in the dclk driver.

Thus declare them directly, removing these warning.

Reported-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent c40f0128
Loading
Loading
Loading
Loading
+10 −10
Original line number Original line Diff line number Diff line
@@ -135,26 +135,26 @@ struct s3c24xx_dclk {
#define to_s3c24xx_dclk1(x) \
#define to_s3c24xx_dclk1(x) \
		container_of(x, struct s3c24xx_dclk, dclk1_div_change_nb)
		container_of(x, struct s3c24xx_dclk, dclk1_div_change_nb)


PNAME(dclk_s3c2410_p) = { "pclk", "uclk" };
static const char *dclk_s3c2410_p[] = { "pclk", "uclk" };
PNAME(clkout0_s3c2410_p) = { "mpll", "upll", "fclk", "hclk", "pclk",
static const char *clkout0_s3c2410_p[] = { "mpll", "upll", "fclk", "hclk", "pclk",
			     "gate_dclk0" };
			     "gate_dclk0" };
PNAME(clkout1_s3c2410_p) = { "mpll", "upll", "fclk", "hclk", "pclk",
static const char *clkout1_s3c2410_p[] = { "mpll", "upll", "fclk", "hclk", "pclk",
			     "gate_dclk1" };
			     "gate_dclk1" };


PNAME(clkout0_s3c2412_p) = { "mpll", "upll", "rtc_clkout",
static const char *clkout0_s3c2412_p[] = { "mpll", "upll", "rtc_clkout",
			     "hclk", "pclk", "gate_dclk0" };
			     "hclk", "pclk", "gate_dclk0" };
PNAME(clkout1_s3c2412_p) = { "xti", "upll", "fclk", "hclk", "pclk",
static const char *clkout1_s3c2412_p) = { "xti", "upll", "fclk", "hclk", "pclk",
			     "gate_dclk1" };
			     "gate_dclk1" };


PNAME(clkout0_s3c2440_p) = { "xti", "upll", "fclk", "hclk", "pclk",
static const char *clkout0_s3c2440_p[] = { "xti", "upll", "fclk", "hclk", "pclk",
			     "gate_dclk0" };
			     "gate_dclk0" };
PNAME(clkout1_s3c2440_p) = { "mpll", "upll", "rtc_clkout",
static const char *clkout1_s3c2440_p[] = { "mpll", "upll", "rtc_clkout",
			     "hclk", "pclk", "gate_dclk1" };
			     "hclk", "pclk", "gate_dclk1" };


PNAME(dclk_s3c2443_p) = { "pclk", "epll" };
static const char *dclk_s3c2443_p[] = { "pclk", "epll" };
PNAME(clkout0_s3c2443_p) = { "xti", "epll", "armclk", "hclk", "pclk",
static const char *clkout0_s3c2443_p[] = { "xti", "epll", "armclk", "hclk", "pclk",
			     "gate_dclk0" };
			     "gate_dclk0" };
PNAME(clkout1_s3c2443_p) = { "dummy", "epll", "rtc_clkout",
static const char *clkout1_s3c2443_p[] = { "dummy", "epll", "rtc_clkout",
			     "hclk", "pclk", "gate_dclk1" };
			     "hclk", "pclk", "gate_dclk1" };


#define DCLKCON_DCLK_DIV_MASK		0xf
#define DCLKCON_DCLK_DIV_MASK		0xf