clkdev.c (9095bf25ea08135a5b74875dd0e3eeaddc4218a0) | clkdev.c (1667393126d7c51fad8b3cb9d3798e8e0367e2ec) |
---|---|
1/* 2 * drivers/clk/clkdev.c 3 * 4 * Copyright (C) 2008 Russell King. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 63 unchanged lines hidden (view full) --- 72 */ 73 if (name) 74 index = of_property_match_string(np, "clock-names", name); 75 clk = __of_clk_get(np, index, dev_id, name); 76 if (!IS_ERR(clk)) { 77 break; 78 } else if (name && index >= 0) { 79 if (PTR_ERR(clk) != -EPROBE_DEFER) | 1/* 2 * drivers/clk/clkdev.c 3 * 4 * Copyright (C) 2008 Russell King. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 63 unchanged lines hidden (view full) --- 72 */ 73 if (name) 74 index = of_property_match_string(np, "clock-names", name); 75 clk = __of_clk_get(np, index, dev_id, name); 76 if (!IS_ERR(clk)) { 77 break; 78 } else if (name && index >= 0) { 79 if (PTR_ERR(clk) != -EPROBE_DEFER) |
80 pr_err("ERROR: could not get clock %s:%s(%i)\n", 81 np->full_name, name ? name : "", index); | 80 pr_err("ERROR: could not get clock %pOF:%s(%i)\n", 81 np, name ? name : "", index); |
82 return clk; 83 } 84 85 /* 86 * No matching clock found on this node. If the parent node 87 * has a "clock-ranges" property, then we can try one of its 88 * clocks. 89 */ --- 387 unchanged lines hidden --- | 82 return clk; 83 } 84 85 /* 86 * No matching clock found on this node. If the parent node 87 * has a "clock-ranges" property, then we can try one of its 88 * clocks. 89 */ --- 387 unchanged lines hidden --- |