diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-04-30 17:04:53 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-04-30 19:28:35 -0400 |
commit | d7d131512b474c902b83a314d69a012e70c55431 (patch) | |
tree | 89f8e1210bca7fb39c815cdcfd31d59417aec994 /drivers/clk/clk.c | |
parent | 864e160ae510f5223e7bd9aa4335d7e092173446 (diff) |
clk: Drop unnecessary OOM prints
We don't need to print error messages when allocations fail.
We'll get a nice backtrace in such situations anyway.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 88439af5d032..8d36100c00ce 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c | |||
@@ -2476,14 +2476,12 @@ struct clk *clk_register(struct device *dev, struct clk_hw *hw) | |||
2476 | 2476 | ||
2477 | core = kzalloc(sizeof(*core), GFP_KERNEL); | 2477 | core = kzalloc(sizeof(*core), GFP_KERNEL); |
2478 | if (!core) { | 2478 | if (!core) { |
2479 | pr_err("%s: could not allocate clk\n", __func__); | ||
2480 | ret = -ENOMEM; | 2479 | ret = -ENOMEM; |
2481 | goto fail_out; | 2480 | goto fail_out; |
2482 | } | 2481 | } |
2483 | 2482 | ||
2484 | core->name = kstrdup_const(hw->init->name, GFP_KERNEL); | 2483 | core->name = kstrdup_const(hw->init->name, GFP_KERNEL); |
2485 | if (!core->name) { | 2484 | if (!core->name) { |
2486 | pr_err("%s: could not allocate clk->name\n", __func__); | ||
2487 | ret = -ENOMEM; | 2485 | ret = -ENOMEM; |
2488 | goto fail_name; | 2486 | goto fail_name; |
2489 | } | 2487 | } |
@@ -2500,7 +2498,6 @@ struct clk *clk_register(struct device *dev, struct clk_hw *hw) | |||
2500 | GFP_KERNEL); | 2498 | GFP_KERNEL); |
2501 | 2499 | ||
2502 | if (!core->parent_names) { | 2500 | if (!core->parent_names) { |
2503 | pr_err("%s: could not allocate clk->parent_names\n", __func__); | ||
2504 | ret = -ENOMEM; | 2501 | ret = -ENOMEM; |
2505 | goto fail_parent_names; | 2502 | goto fail_parent_names; |
2506 | } | 2503 | } |
@@ -2511,7 +2508,6 @@ struct clk *clk_register(struct device *dev, struct clk_hw *hw) | |||
2511 | core->parent_names[i] = kstrdup_const(hw->init->parent_names[i], | 2508 | core->parent_names[i] = kstrdup_const(hw->init->parent_names[i], |
2512 | GFP_KERNEL); | 2509 | GFP_KERNEL); |
2513 | if (!core->parent_names[i]) { | 2510 | if (!core->parent_names[i]) { |
2514 | pr_err("%s: could not copy parent_names\n", __func__); | ||
2515 | ret = -ENOMEM; | 2511 | ret = -ENOMEM; |
2516 | goto fail_parent_names_copy; | 2512 | goto fail_parent_names_copy; |
2517 | } | 2513 | } |
@@ -2521,7 +2517,6 @@ struct clk *clk_register(struct device *dev, struct clk_hw *hw) | |||
2521 | 2517 | ||
2522 | hw->clk = __clk_create_clk(hw, NULL, NULL); | 2518 | hw->clk = __clk_create_clk(hw, NULL, NULL); |
2523 | if (IS_ERR(hw->clk)) { | 2519 | if (IS_ERR(hw->clk)) { |
2524 | pr_err("%s: could not allocate per-user clk\n", __func__); | ||
2525 | ret = PTR_ERR(hw->clk); | 2520 | ret = PTR_ERR(hw->clk); |
2526 | goto fail_parent_names_copy; | 2521 | goto fail_parent_names_copy; |
2527 | } | 2522 | } |