greybus: es2: clean up es2 destructor
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 4 Nov 2015 17:55:23 +0000 (18:55 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 5 Nov 2015 04:35:18 +0000 (20:35 -0800)
commita52028626accc2ae26c9ce03ec7bba68146b8456
tree09dc31bdb9e3bad24ef6c668e5cbfe570104b288
parentc1700479845bc36cb48719b2ae341d4df89a73f6
greybus: es2: clean up es2 destructor

Now that the host-device is deregistered separately from deallocation,
we can simplify the cport_to_ep-array deallocation.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c