dm: Use driver_info index instead of pointer