evdev: reuse code for device removal
evdev: reuse code for device removal

Just like device_added, now the routines to close the compositor and vt switch
leave are using the same code to remove a device.

This patch also closes properly a mtdev device, bug spotted by Christopher
Michael.

Signed-off-by: Tiago Vignatti <f080760b2054d506aacc8dee97f8804c19fbc3aa@intel.com>

eyolfson/weston,Gnurou/weston,jonnylamb/weston,sir-murray/weston,krezovic/weston,eyolfson/weston,Fantu/compositor-spice,kwm81/weston,sir-murray/weston,jonnylamb/weston,kwm81/weston,krezovic/weston,Fantu/compositor-spice,Gnurou/weston,Tarnyko/weston-xdg_surface_present,Tarnyko/weston-xdg_surface_present,Fantu/compositor-spice,mchalupa/weston,udoprog/weston,xorgy/weston,xorgy/weston,giucam/weston,giucam/weston,udoprog/weston,mchalupa/weston