diff options
author | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-08-08 06:18:54 +0000 |
---|---|---|
committer | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-08-08 06:18:54 +0000 |
commit | f077729dbde35555cde32f18506fd49e1e1afa7d (patch) | |
tree | fb7386cb5a763e311615d03985c8070cdb86f854 /sys/dev/hyperv/utilities/hv_util.c | |
parent | 9b6306f2874df3bc83408bb88895713d1853a972 (diff) | |
download | src-f077729dbde35555cde32f18506fd49e1e1afa7d.tar.gz src-f077729dbde35555cde32f18506fd49e1e1afa7d.zip |
hyperv/ic: Pass the channel callback to hv_util_attach()
The saved channel callback in util softc is actually never used.
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7424
Notes
Notes:
svn path=/head/; revision=303824
Diffstat (limited to 'sys/dev/hyperv/utilities/hv_util.c')
-rw-r--r-- | sys/dev/hyperv/utilities/hv_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hyperv/utilities/hv_util.c b/sys/dev/hyperv/utilities/hv_util.c index 3c90ce658993..e7ecf32ca9fb 100644 --- a/sys/dev/hyperv/utilities/hv_util.c +++ b/sys/dev/hyperv/utilities/hv_util.c @@ -75,7 +75,7 @@ hv_negotiate_version(struct hv_vmbus_icmsg_hdr *icmsghdrp, uint8_t *buf) } int -hv_util_attach(device_t dev) +hv_util_attach(device_t dev, vmbus_chan_callback_t cb) { struct hv_util_sc *sc = device_get_softc(dev); struct vmbus_channel *chan = vmbus_get_channel(dev); @@ -95,7 +95,7 @@ hv_util_attach(device_t dev) vmbus_chan_set_readbatch(chan, false); error = vmbus_chan_open(chan, VMBUS_IC_BRSIZE, VMBUS_IC_BRSIZE, NULL, 0, - sc->callback, sc); + cb, sc); if (error) { free(sc->receive_buffer, M_DEVBUF); return (error); |