clk-asm9260.c (0cce284537fb42d9c28b9b31038ffc9b464555f5) | clk-asm9260.c (1667393126d7c51fad8b3cb9d3798e8e0367e2ec) |
---|---|
1/* 2 * Copyright (c) 2014 Oleksij Rempel <linux@rempel-privat.de>. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT --- 324 unchanged lines hidden (view full) --- 333 gd->bit_idx, 0, &asm9260_clk_lock); 334 } 335 336 /* check for errors on leaf clocks */ 337 for (n = 0; n < MAX_CLKS; n++) { 338 if (!IS_ERR(hws[n])) 339 continue; 340 | 1/* 2 * Copyright (c) 2014 Oleksij Rempel <linux@rempel-privat.de>. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT --- 324 unchanged lines hidden (view full) --- 333 gd->bit_idx, 0, &asm9260_clk_lock); 334 } 335 336 /* check for errors on leaf clocks */ 337 for (n = 0; n < MAX_CLKS; n++) { 338 if (!IS_ERR(hws[n])) 339 continue; 340 |
341 pr_err("%s: Unable to register leaf clock %d\n", 342 np->full_name, n); | 341 pr_err("%pOF: Unable to register leaf clock %d\n", 342 np, n); |
343 goto fail; 344 } 345 346 /* register clk-provider */ 347 of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); 348 return; 349fail: 350 iounmap(base); 351} 352CLK_OF_DECLARE(asm9260_acc, "alphascale,asm9260-clock-controller", 353 asm9260_acc_init); | 343 goto fail; 344 } 345 346 /* register clk-provider */ 347 of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); 348 return; 349fail: 350 iounmap(base); 351} 352CLK_OF_DECLARE(asm9260_acc, "alphascale,asm9260-clock-controller", 353 asm9260_acc_init); |