We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f146b2 commit 28df150Copy full SHA for 28df150
drivers/clk/tegra/clk.c
@@ -14,7 +14,7 @@
14
#include <linux/platform_device.h>
15
#include <linux/pm_runtime.h>
16
#include <linux/reset-controller.h>
17
-#include <linux/string.h>
+#include <linux/string_helpers.h>
18
19
#include <soc/tegra/fuse.h>
20
@@ -384,12 +384,10 @@ static struct device_node *tegra_clk_get_of_node(struct clk_hw *hw)
384
struct device_node *np;
385
char *node_name;
386
387
- node_name = kstrdup(hw->init->name, GFP_KERNEL);
+ node_name = kstrdup_and_replace(hw->init->name, '_', '-', GFP_KERNEL);
388
if (!node_name)
389
return NULL;
390
391
- strreplace(node_name, '_', '-');
392
-
393
for_each_child_of_node(tegra_car_np, np) {
394
if (!strcmp(np->name, node_name))
395
break;
0 commit comments