hwmon: fix freeing of gpio_data and irq