[PATCH 6.6 072/163] gpio: davinci: Validate the obtained number of IRQs