gpio: qpnp-pin: map interrupts only when required
gpio: qpnp-pin: map interrupts only when required

The current driver creates an irq mapping for every pin in the probe
function. This is unnecessary because some pins may not be used as
interrupts.

Instead create a mapping only when gpio_to_irq() api is called.

Change-Id: I8bd11997fbcbb0aad69ed0cfc20a2c35a8266f0f
Signed-off-by: Abhijeet Dharmapurikar <98996d53ce579fa37f08d0061abc5355e223c79e@codeaurora.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas