[PATCH openEuler-1.0-LTS] gpio: davinci: Validate the obtained number of IRQs