[PATCH 6.9 098/222] gpio: davinci: Validate the obtained number of IRQs