[PATCH 5.10 240/290] gpio: davinci: Validate the obtained number of IRQs