diff options
author | David S. Miller <davem@davemloft.net> | 2006-06-29 17:39:40 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-29 19:37:33 -0400 |
commit | 915214853d7681416d6bdd1591787cdbded459e7 (patch) | |
tree | 520008a7aa5afb36c5c8c48641a3fc76114c18f9 /arch/sparc64/kernel/time.c | |
parent | 00cde6748255a84beecfdea4caeaf7c9cd05a527 (diff) |
[SPARC64] clock: Only probe central fhc clock on Enterprise boxes.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/time.c')
-rw-r--r-- | arch/sparc64/kernel/time.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/time.c b/arch/sparc64/kernel/time.c index 540e4b6c2dee..75cb6b4dc14f 100644 --- a/arch/sparc64/kernel/time.c +++ b/arch/sparc64/kernel/time.c | |||
@@ -780,6 +780,13 @@ static int __devinit clock_probe(struct of_device *op, const struct of_device_id | |||
780 | if (!model || !clock_model_matches(model)) | 780 | if (!model || !clock_model_matches(model)) |
781 | return -ENODEV; | 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 | size = (op->resource[0].end - op->resource[0].start) + 1; | 790 | size = (op->resource[0].end - op->resource[0].start) + 1; |
784 | regs = of_ioremap(&op->resource[0], 0, size, "clock"); | 791 | regs = of_ioremap(&op->resource[0], 0, size, "clock"); |
785 | if (!regs) | 792 | if (!regs) |