[PATCH kernel-4.19 064/337] gpio: eic-sprd: break loop when getting NULL device resource