Skip to content

Commit

Permalink
[SPARC64] clock: Only probe central fhc clock on Enterprise boxes.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller authored and David S. Miller committed Jun 29, 2006
1 parent 00cde67 commit 9152148
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/sparc64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,13 @@ static int __devinit clock_probe(struct of_device *op, const struct of_device_id
if (!model || !clock_model_matches(model))
return -ENODEV;

/* On an Enterprise system there can be multiple mostek clocks.
* We should only match the one that is on the central FHC bus.
*/
if (!strcmp(dp->parent, "fhc") &&
strcmp(dp->parent->parent, "central") != 0)
return -ENODEV;

size = (op->resource[0].end - op->resource[0].start) + 1;
regs = of_ioremap(&op->resource[0], 0, size, "clock");
if (!regs)
Expand Down

0 comments on commit 9152148

Please sign in to comment.