clk-stm32f4.c (a976c2951d8f376112361830aa7762beff83a205) | clk-stm32f4.c (1667393126d7c51fad8b3cb9d3798e8e0367e2ec) |
---|---|
1/* 2 * Author: Daniel Thompson <daniel.thompson@linaro.org> 3 * 4 * Inspired by clk-asm9260.c . 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. --- 1527 unchanged lines hidden (view full) --- 1536 if (idx < 0) 1537 goto fail; 1538 1539 clks[idx] = clk_hw_register_gate( 1540 NULL, gd->name, gd->parent_name, gd->flags, 1541 base + gd->offset, gd->bit_idx, 0, &stm32f4_clk_lock); 1542 1543 if (IS_ERR(clks[idx])) { | 1/* 2 * Author: Daniel Thompson <daniel.thompson@linaro.org> 3 * 4 * Inspired by clk-asm9260.c . 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. --- 1527 unchanged lines hidden (view full) --- 1536 if (idx < 0) 1537 goto fail; 1538 1539 clks[idx] = clk_hw_register_gate( 1540 NULL, gd->name, gd->parent_name, gd->flags, 1541 base + gd->offset, gd->bit_idx, 0, &stm32f4_clk_lock); 1542 1543 if (IS_ERR(clks[idx])) { |
1544 pr_err("%s: Unable to register leaf clock %s\n", 1545 np->full_name, gd->name); | 1544 pr_err("%pOF: Unable to register leaf clock %s\n", 1545 np, gd->name); |
1546 goto fail; 1547 } 1548 } 1549 1550 clks[CLK_LSI] = clk_register_rgate(NULL, "lsi", "clk-lsi", 0, 1551 base + STM32F4_RCC_CSR, 0, 1, 0, &stm32f4_clk_lock); 1552 1553 if (IS_ERR(clks[CLK_LSI])) { --- 65 unchanged lines hidden --- | 1546 goto fail; 1547 } 1548 } 1549 1550 clks[CLK_LSI] = clk_register_rgate(NULL, "lsi", "clk-lsi", 0, 1551 base + STM32F4_RCC_CSR, 0, 1, 0, &stm32f4_clk_lock); 1552 1553 if (IS_ERR(clks[CLK_LSI])) { --- 65 unchanged lines hidden --- |