public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/clk/sunxi/clk-sunxi.c: small improvement of code
@ 2013-05-17  7:02 Giacomo Catenazzi
  2013-05-17 13:43 ` [PATCH] clk: sunxi: "cpu_data" is defined in header files of some architectures Emilio López
  0 siblings, 1 reply; 3+ messages in thread
From: Giacomo Catenazzi @ 2013-05-17  7:02 UTC (permalink / raw)
  To: Emilio López; +Cc: LKML

Hello Emilio,

please apply the following patch: "cpu_data" is defined in a header files of architectures.
In some architecture, the #define cpu_data is not a "macro-function", so the compiler will substitute the identifier with probably something wrong.


--- a/drivers/clk/sunxi/clk-sunxi.c
+++ b/drivers/clk/sunxi/clk-sunxi.c
@@ -239,7 +239,7 @@ struct mux_data {
        u8 shift;
 };

-static const __initconst struct mux_data cpu_data = {
+static const __initconst struct mux_data this_cpu_data = {
        .shift = 16,
 };

@@ -421,7 +421,7 @@ static const __initconst struct of_device_id clk_div_match[] = {

 /* Matches for mux clocks */
 static const __initconst struct of_device_id clk_mux_match[] = {
-       {.compatible = "allwinner,sun4i-cpu-clk", .data = &cpu_data,},
+       {.compatible = "allwinner,sun4i-cpu-clk", .data = &this_cpu_data,},
        {.compatible = "allwinner,sun4i-apb1-mux-clk", .data = &apb1_mux_data,},
        {}
 };



Signed-off-by: Giacomo A. Catenazzi <cate@cateee.net>

ciao
	cate

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

end of thread, other threads:[~2013-05-29 22:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-17  7:02 [PATCH] drivers/clk/sunxi/clk-sunxi.c: small improvement of code Giacomo Catenazzi
2013-05-17 13:43 ` [PATCH] clk: sunxi: "cpu_data" is defined in header files of some architectures Emilio López
2013-05-29 22:48   ` Mike Turquette

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