]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qoriq: Fix checkpatch type ALLOC_SIZEOF_STRUCT
authorEmil Medve <Emilian.Medve@Freescale.com>
Wed, 21 Jan 2015 10:03:25 +0000 (04:03 -0600)
committerMichael Turquette <mturquette@linaro.org>
Wed, 28 Jan 2015 18:11:39 +0000 (10:11 -0800)
commit90e7d99d1b3b8db911251ffce73d37cd460e4055
treefb100ae12e187bc0e300a878302848c3634c92aa
parent0c834fd2c3606a71d766500408e4f3a0fe476a63
clk: qoriq: Fix checkpatch type ALLOC_SIZEOF_STRUCT

CHECK:ALLOC_SIZEOF_STRUCT: Prefer kzalloc(sizeof(*cmux_clk)...) over kzalloc(sizeof(struct cmux_clk)...)
+       cmux_clk = kzalloc(sizeof(struct cmux_clk), GFP_KERNEL);

CHECK:ALLOC_SIZEOF_STRUCT: Prefer kzalloc(sizeof(*onecell_data)...) over kzalloc(sizeof(struct clk_onecell_data)...)
+       onecell_data = kzalloc(sizeof(struct clk_onecell_data), GFP_KERNEL);

Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/clk-qoriq.c