[PATCH 4.19 113/139] gpio: davinci: Validate the obtained number of IRQs