Deleted Added
full compact
omap4_wugen.c (297539) omap4_wugen.c (300149)
1/*-
2 * Copyright (c) 2016 Svatopluk Kraus
3 * Copyright (c) 2016 Michal Meloun
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2016 Svatopluk Kraus
3 * Copyright (c) 2016 Michal Meloun
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/arm/ti/omap4/omap4_wugen.c 297539 2016-04-04 09:15:25Z skra $");
29__FBSDID("$FreeBSD: head/sys/arm/ti/omap4/omap4_wugen.c 300149 2016-05-18 15:05:44Z andrew $");
30
31#include <sys/param.h>
32#include <sys/bus.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>
35#include <sys/module.h>
36#include <sys/rman.h>
37#include <sys/systm.h>

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

205 rid = 0;
206 sc->sc_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
207 RF_ACTIVE);
208 if (sc->sc_mem_res == NULL) {
209 device_printf(dev, "can't allocate resources\n");
210 return (ENXIO);
211 }
212
30
31#include <sys/param.h>
32#include <sys/bus.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>
35#include <sys/module.h>
36#include <sys/rman.h>
37#include <sys/systm.h>

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

205 rid = 0;
206 sc->sc_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
207 RF_ACTIVE);
208 if (sc->sc_mem_res == NULL) {
209 device_printf(dev, "can't allocate resources\n");
210 return (ENXIO);
211 }
212
213 if (intr_pic_register(dev, OF_xref_from_node(node)) != 0) {
213 if (intr_pic_register(dev, OF_xref_from_node(node)) == NULL) {
214 device_printf(dev, "can't register PIC\n");
215 goto fail;
216 }
217 return (0);
218
219fail:
220 omap4_wugen_detach(dev);
221 return (ENXIO);

--- 29 unchanged lines hidden ---
214 device_printf(dev, "can't register PIC\n");
215 goto fail;
216 }
217 return (0);
218
219fail:
220 omap4_wugen_detach(dev);
221 return (ENXIO);

--- 29 unchanged lines hidden ---