[PATCH 5.15 300/356] gpio: davinci: Validate the obtained number of IRQs