Skip to content
Snippets Groups Projects
Commit 73939bb5 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
parents 7c8d891c 1c833bc3
No related branches found
No related tags found
No related merge requests found
...@@ -145,6 +145,10 @@ static int __devinit clock_probe(struct platform_device *op) ...@@ -145,6 +145,10 @@ static int __devinit clock_probe(struct platform_device *op)
if (!model) if (!model)
return -ENODEV; return -ENODEV;
/* Only the primary RTC has an address property */
if (!of_find_property(dp, "address", NULL))
return -ENODEV;
m48t59_rtc.resource = &op->resource[0]; m48t59_rtc.resource = &op->resource[0];
if (!strcmp(model, "mk48t02")) { if (!strcmp(model, "mk48t02")) {
/* Map the clock register io area read-only */ /* Map the clock register io area read-only */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment