clk: convert clock name allocations to kstrdup_const
authorAndrzej Hajda <[email protected]>
Fri, 13 Feb 2015 22:36:33 +0000 (14:36 -0800)
committerLinus Torvalds <[email protected]>
Sat, 14 Feb 2015 05:21:36 +0000 (21:21 -0800)
commit612936f21277d1254dd885de2e383aacdc7ca67f
tree97269bedada361560a20ef8f4fb5a2a44a2f0ef1
parentdfeb0750b630b72b5d4fb2461bc7179eceb54666
clk: convert clock name allocations to kstrdup_const

Clock subsystem frequently performs duplication of strings located in
read-only memory section.  Replacing kstrdup by kstrdup_const allows to
avoid such operations.

Signed-off-by: Andrzej Hajda <[email protected]>
Cc: Marek Szyprowski <[email protected]>
Cc: Kyungmin Park <[email protected]>
Cc: Mike Turquette <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Greg KH <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/clk/clk.c