diff options
author | Pankaj Dubey <pankaj.dubey@samsung.com> | 2014-02-26 11:42:41 +0900 |
---|---|---|
committer | Tomasz Figa <t.figa@samsung.com> | 2014-05-14 19:40:05 +0200 |
commit | 42fb57c008406ab667bcc6e3164cee092c6f35e7 (patch) | |
tree | b6c505246d94db9ed54aacfb86fe29eb85dd0b71 /drivers/clk/samsung | |
parent | 53cb6342dee87c99c61bc4d9f3dd4471936f71e7 (diff) |
clk: samsung: fixed compiler warning [-Wpointer-to-int-cast]
When compiled using ARM64 cross compiler, gcc complains as
drivers/clk/samsung/clk.c:293:18:
warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Diffstat (limited to 'drivers/clk/samsung')
-rw-r--r-- | drivers/clk/samsung/clk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c index ce4d8a25dd6..49629c71c9e 100644 --- a/drivers/clk/samsung/clk.c +++ b/drivers/clk/samsung/clk.c @@ -293,7 +293,7 @@ void __init samsung_clk_of_register_fixed_ext(struct samsung_clk_provider *ctx, for_each_matching_node_and_match(clk_np, clk_matches, &match) { if (of_property_read_u32(clk_np, "clock-frequency", &freq)) continue; - fixed_rate_clk[(u32)match->data].fixed_rate = freq; + fixed_rate_clk[(unsigned long)match->data].fixed_rate = freq; } samsung_clk_register_fixed_rate(ctx, fixed_rate_clk, nr_fixed_rate_clk); } |