Deleted Added
full compact
imx_wdog.c (256281) imx_wdog.c (266152)
1/*-
2 * Copyright (c) 2012, 2013 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Oleksandr Rybalko under sponsorship
6 * from the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2012, 2013 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Oleksandr Rybalko under sponsorship
6 * from the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: stable/10/sys/arm/freescale/imx/imx_wdog.c 255130 2013-09-01 20:15:35Z rpaulo $");
31__FBSDID("$FreeBSD: stable/10/sys/arm/freescale/imx/imx_wdog.c 266152 2014-05-15 16:11:06Z ian $");
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/module.h>
37#include <sys/time.h>
38#include <sys/bus.h>
39#include <sys/resource.h>

--- 85 unchanged lines hidden (view full) ---

125 mtx_unlock(&sc->sc_mtx);
126
127}
128
129static int
130imx_wdog_probe(device_t dev)
131{
132
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/module.h>
37#include <sys/time.h>
38#include <sys/bus.h>
39#include <sys/resource.h>

--- 85 unchanged lines hidden (view full) ---

125 mtx_unlock(&sc->sc_mtx);
126
127}
128
129static int
130imx_wdog_probe(device_t dev)
131{
132
133 if (!ofw_bus_status_okay(dev))
134 return (ENXIO);
135
133 if (!ofw_bus_is_compatible(dev, "fsl,imx51-wdt") &&
134 !ofw_bus_is_compatible(dev, "fsl,imx53-wdt"))
135 return (ENXIO);
136
137 device_set_desc(dev, "Freescale i.MX5xx Watchdog Timer");
138 return (0);
139}
140

--- 24 unchanged lines hidden ---
136 if (!ofw_bus_is_compatible(dev, "fsl,imx51-wdt") &&
137 !ofw_bus_is_compatible(dev, "fsl,imx53-wdt"))
138 return (ENXIO);
139
140 device_set_desc(dev, "Freescale i.MX5xx Watchdog Timer");
141 return (0);
142}
143

--- 24 unchanged lines hidden ---