[PATCH 5.4 155/189] gpio: davinci: Validate the obtained number of IRQs