]> git.baikalelectronics.ru Git - kernel.git/commit
clkdev: fix clk_add_alias() with a NULL alias device name
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 20 Oct 2015 10:49:44 +0000 (11:49 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 20 Oct 2015 16:24:08 +0000 (17:24 +0100)
commited7a3451ee1896074c6963fa92f45983097325cc
treea9d0f9a0a352dace47c61240bde0ee98f190c15f
parent8b92bb3c732a76e1c0bc41620f85c4d815e6b1aa
clkdev: fix clk_add_alias() with a NULL alias device name

clk_add_alias() was not correctly handling the case where alias_dev_name
was NULL: rather than producing an entry with a NULL dev_id pointer,
it would produce a device name of (null).  Fix this.

Cc: <stable@vger.kernel.org>
Fixes: 5d931f715aa8 ("clkdev: add clkdev_create() helper")
Reported-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/clk/clkdev.c