Deleted Added
full compact
2a3
> * Copyright (C) 2015 The FreeBSD Foundation
4a6,8
> * Portions of this software were developed by Andrew Turner
> * under sponsorship from the FreeBSD Foundation.
> *
28c32
< __FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_cpu.c 276162 2014-12-24 01:19:11Z ian $");
---
> __FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_cpu.c 277378 2015-01-19 11:06:56Z andrew $");
196,199c200,204
< device_printf(dev, "missing 'clock-frequency' property\n");
< return (ENXIO);
< }
< sc->sc_nominal_mhz = cell / 1000000; /* convert to MHz */
---
> if (bootverbose)
> device_printf(dev,
> "missing 'clock-frequency' property\n");
> } else
> sc->sc_nominal_mhz = cell / 1000000; /* convert to MHz */
217,218c222,226
< *result = (uintptr_t)sc->sc_nominal_mhz;
< return (0);
---
> if (sc->sc_nominal_mhz > 0) {
> *result = (uintptr_t)sc->sc_nominal_mhz;
> return (0);
> }
> break;