[PATCH 6.0 173/289] iio: core: Fix entry not deleted when iio_register_sw_trigger_type() fails