[PATCH 5.4 027/453] gpio: eic-sprd: break loop when getting NULL device resource