dm table: clean dm_get_device and move exports