[adm5120] fix switch_driver to avoid segfaults