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