Deleted Added
full compact
vmbus.c (307448) vmbus.c (307449)
1/*-
2 * Copyright (c) 2009-2012,2016 Microsoft Corp.
3 * Copyright (c) 2012 NetApp Inc.
4 * Copyright (c) 2012 Citrix Inc.
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

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

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/*
30 * VM Bus Driver Implementation
31 */
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009-2012,2016 Microsoft Corp.
3 * Copyright (c) 2012 NetApp Inc.
4 * Copyright (c) 2012 Citrix Inc.
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

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

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/*
30 * VM Bus Driver Implementation
31 */
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: stable/11/sys/dev/hyperv/vmbus/vmbus.c 307448 2016-10-17 01:47:49Z sephe $");
33__FBSDID("$FreeBSD: stable/11/sys/dev/hyperv/vmbus/vmbus.c 307449 2016-10-17 01:59:42Z sephe $");
34
35#include <sys/param.h>
36#include <sys/bus.h>
37#include <sys/kernel.h>
38#include <sys/lock.h>
39#include <sys/malloc.h>
40#include <sys/module.h>
41#include <sys/proc.h>

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

989
990int
991hv_vmbus_child_device_register(struct hv_vmbus_channel *chan)
992{
993 struct vmbus_softc *sc = chan->vmbus_sc;
994 device_t parent = sc->vmbus_dev;
995 int error = 0;
996
34
35#include <sys/param.h>
36#include <sys/bus.h>
37#include <sys/kernel.h>
38#include <sys/lock.h>
39#include <sys/malloc.h>
40#include <sys/module.h>
41#include <sys/proc.h>

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

989
990int
991hv_vmbus_child_device_register(struct hv_vmbus_channel *chan)
992{
993 struct vmbus_softc *sc = chan->vmbus_sc;
994 device_t parent = sc->vmbus_dev;
995 int error = 0;
996
997 /* New channel has been offered */
998 vmbus_scan_newchan(sc);
999
997 chan->ch_dev = device_add_child(parent, NULL, -1);
998 if (chan->ch_dev == NULL) {
999 device_printf(parent, "device_add_child for chan%u failed\n",
1000 chan->ch_id);
1001 error = ENXIO;
1002 goto done;
1003 }
1004 device_set_ivars(chan->ch_dev, chan);

--- 300 unchanged lines hidden ---
1000 chan->ch_dev = device_add_child(parent, NULL, -1);
1001 if (chan->ch_dev == NULL) {
1002 device_printf(parent, "device_add_child for chan%u failed\n",
1003 chan->ch_id);
1004 error = ENXIO;
1005 goto done;
1006 }
1007 device_set_ivars(chan->ch_dev, chan);

--- 300 unchanged lines hidden ---