[PATCH 4.19 065/346] gpio: eic-sprd: break loop when getting NULL device resource