···145 if (!model)146 return -ENODEV;1470000148 m48t59_rtc.resource = &op->resource[0];149 if (!strcmp(model, "mk48t02")) {150 /* Map the clock register io area read-only */
···145 if (!model)146 return -ENODEV;147148+ /* Only the primary RTC has an address property */149+ if (!of_find_property(dp, "address", NULL))150+ return -ENODEV;151+152 m48t59_rtc.resource = &op->resource[0];153 if (!strcmp(model, "mk48t02")) {154 /* Map the clock register io area read-only */