Change the order of functions

Just reorganize the order of functions
Add exit functions

Add stream/device exit functions
[v4l2_bridge] Fix to set buffer index

This patchs sets up the buffer index properly. Previously,
buffer index was not set, and only the 1st(idx=0) buffer was valid
for the operation.