android_kernel_oneplus_msm8998/drivers/clk/at91
Vladimir Zapolskiy 4ee87930e4 clk: at91: fix check of clk_register() returned value
commit cb0ceaf77d93964a0d00477c79f4499123f6159c upstream.

The clk_register() function returns a valid pointer to struct clk or
ERR_PTR() error code, this makes a check for returned NULL value
useless and may lead to oops on error path.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: bcc5fd49a0 ("clk: at91: add a driver for the h32mx clock")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-06-07 18:14:34 -07:00
..
clk-generated.c clk: at91: add generated clock driver 2015-10-01 12:48:11 -07:00
clk-h32mx.c clk: at91: fix check of clk_register() returned value 2016-06-07 18:14:34 -07:00
clk-main.c clk: at91: make use of of_clk_parent_fill helper function 2015-07-28 11:58:59 -07:00
clk-master.c clk: at91: make use of of_clk_parent_fill helper function 2015-07-28 11:58:59 -07:00
clk-peripheral.c clk: at91: modify PMC peripheral clock to deal with newer register layout 2015-10-01 12:39:43 -07:00
clk-pll.c Merge branch 'clk-fixes' into clk-next 2015-07-06 15:54:58 -07:00
clk-plldiv.c clk: at91: add PMC pll clocks 2013-12-02 15:31:22 +01:00
clk-programmable.c clk: at91: Convert to clk_hw based provider APIs 2015-08-24 16:48:47 -07:00
clk-slow.c Merge branch 'cleanup-clk-h-includes' into clk-next 2015-07-28 11:59:09 -07:00
clk-smd.c clk: at91: make use of of_clk_parent_fill helper function 2015-07-28 11:58:59 -07:00
clk-system.c clk: at91: system: don't try to free_irq when there is no IRQ 2015-09-16 15:22:22 -07:00
clk-usb.c clk: at91: Convert to clk_hw based provider APIs 2015-08-24 16:48:47 -07:00
clk-utmi.c clk: at91: utmi: use pmc_read when the at91_pmc is available 2015-09-16 15:22:20 -07:00
Makefile clk: at91: add generated clock driver 2015-10-01 12:48:11 -07:00
pmc.c clk: at91: add generated clock driver 2015-10-01 12:48:11 -07:00
pmc.h clk: at91: add generated clock driver 2015-10-01 12:48:11 -07:00
sckc.c clk: at91: add slow clks driver 2014-05-07 18:27:45 +02:00
sckc.h clk: at91: add slow clks driver 2014-05-07 18:27:45 +02:00