ofw_gpiobus.c (279761) | ofw_gpiobus.c (282972) |
---|---|
1/*- 2 * Copyright (c) 2009, Nathan Whitehorn <nwhitehorn@FreeBSD.org> 3 * Copyright (c) 2013, Luiz Otavio O Souza <loos@FreeBSD.org> 4 * Copyright (c) 2013 The FreeBSD Foundation 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009, Nathan Whitehorn <nwhitehorn@FreeBSD.org> 3 * Copyright (c) 2013, Luiz Otavio O Souza <loos@FreeBSD.org> 4 * Copyright (c) 2013 The FreeBSD Foundation 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/dev/gpio/ofw_gpiobus.c 279761 2015-03-08 00:47:50Z loos $"); | 30__FBSDID("$FreeBSD: head/sys/dev/gpio/ofw_gpiobus.c 282972 2015-05-15 13:55:18Z br $"); |
31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/bus.h> 35#include <sys/kernel.h> 36#include <sys/malloc.h> 37#include <sys/module.h> 38 --- 103 unchanged lines hidden (view full) --- 142 return (NULL); 143 } 144 for (i = 0; i < devi->npins; i++) { 145 devi->flags[i] = pins[i].flags; 146 devi->pins[i] = pins[i].pin; 147 } 148 free(pins, M_DEVBUF); 149 /* Parse the interrupt resources. */ | 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/bus.h> 35#include <sys/kernel.h> 36#include <sys/malloc.h> 37#include <sys/module.h> 38 --- 103 unchanged lines hidden (view full) --- 142 return (NULL); 143 } 144 for (i = 0; i < devi->npins; i++) { 145 devi->flags[i] = pins[i].flags; 146 devi->pins[i] = pins[i].pin; 147 } 148 free(pins, M_DEVBUF); 149 /* Parse the interrupt resources. */ |
150 if (ofw_bus_intr_to_rl(bus, node, &dinfo->opd_dinfo.rl) != 0) { | 150 if (ofw_bus_intr_to_rl(bus, node, &dinfo->opd_dinfo.rl, NULL) != 0) { |
151 ofw_gpiobus_destroy_devinfo(bus, dinfo); 152 return (NULL); 153 } 154 device_set_ivars(child, dinfo); 155 156 return (dinfo); 157} 158 --- 254 unchanged lines hidden --- | 151 ofw_gpiobus_destroy_devinfo(bus, dinfo); 152 return (NULL); 153 } 154 device_set_ivars(child, dinfo); 155 156 return (dinfo); 157} 158 --- 254 unchanged lines hidden --- |