Commit 915214853d7681416d6bdd1591787cdbded459e7

Authored by David S. Miller
Committed by David S. Miller
1 parent 00cde67482

[SPARC64] clock: Only probe central fhc clock on Enterprise boxes.

Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff

arch/sparc64/kernel/time.c
... ... @@ -780,6 +780,13 @@
780 780 if (!model || !clock_model_matches(model))
781 781 return -ENODEV;
782 782  
  783 + /* On an Enterprise system there can be multiple mostek clocks.
  784 + * We should only match the one that is on the central FHC bus.
  785 + */
  786 + if (!strcmp(dp->parent, "fhc") &&
  787 + strcmp(dp->parent->parent, "central") != 0)
  788 + return -ENODEV;
  789 +
783 790 size = (op->resource[0].end - op->resource[0].start) + 1;
784 791 regs = of_ioremap(&op->resource[0], 0, size, "clock");
785 792 if (!regs)