this clause should be:
get_driver_module( DriverAtom ) when is_atom(DriverAtom) ->
  get_driver_module( atom_to_list(DriverAtom) ).