Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356466
b: refs/heads/master
c: fa6d459
h: refs/heads/master
v: v3
  • Loading branch information
Anatolij Gustschin committed Jan 15, 2013
1 parent 01e5a6b commit c11dc9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73e31235ca7874701718b562ac19161516e46c13
refs/heads/master: fa6d459d64a60db41c476c16063670ca4297e1d1
7 changes: 3 additions & 4 deletions trunk/arch/powerpc/platforms/512x/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,13 +680,12 @@ static void psc_calc_rate(struct clk *clk, int pscnum, struct device_node *np)
static void psc_clks_init(void)
{
struct device_node *np;
const u32 *cell_index;
struct platform_device *ofdev;
u32 reg;

for_each_compatible_node(np, NULL, "fsl,mpc5121-psc") {
cell_index = of_get_property(np, "cell-index", NULL);
if (cell_index) {
int pscnum = *cell_index;
if (!of_property_read_u32(np, "reg", &reg)) {
int pscnum = (reg & 0xf00) >> 8;
struct clk *clk = psc_dev_clk(pscnum);

clk->flags = CLK_HAS_RATE | CLK_HAS_CTRL;
Expand Down

0 comments on commit c11dc9c

Please sign in to comment.