]> git.baikalelectronics.ru Git - kernel.git/commit
clk: samsung: Initialize clock table with error pointers
authorTomasz Figa <t.figa@samsung.com>
Thu, 6 Feb 2014 18:33:11 +0000 (19:33 +0100)
committerTomasz Figa <t.figa@samsung.com>
Wed, 14 May 2014 17:23:25 +0000 (19:23 +0200)
commit0b2bbc3aae516986c0c47e84aef006f0543e413b
tree34af239ad4929b71813aa7112db4f4b3efcd034d
parent03ab9d7c0aa12f49573c5873bbe1254a1137b5f2
clk: samsung: Initialize clock table with error pointers

Before this patch, the driver was simply zeroing the clock table, which
is incorrect, because invalid clock numbers returned NULL instead of
error pointers. This patch fixes this by changing the driver to
initialize the array with PTR_ERR(-ENOENT).

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/clk/samsung/clk.c