Cai Li 975b820b68 clk: fix a panic error caused by accessing NULL pointer
In some cases the clock parent would be set NULL when doing re-parent,
it will cause a NULL pointer accessing if clk_set trace event is
enabled.

This patch sets the parent as "none" if the input parameter is NULL.

Fixes: dfc202ead312 (clk: Add tracepoints for hardware operations)
Signed-off-by: Cai Li <cai.li@spreadtrum.com>
Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2017-12-05 15:28:51 -08:00
..
2017-11-13 21:05:31 -08:00
2017-11-15 10:56:56 -08:00
2017-11-15 20:30:12 -08:00
2017-11-15 14:54:53 -08:00
2017-11-20 21:50:24 -10:00
2017-11-16 13:06:27 -08:00