• T
    ASoC: jack: Manage gpios via devres · bd29ae96
    Takashi Iwai 提交于
    Let's be lazy -- this patch adds the devres code to
    snd_soc_jack_add_gpios() for releasing the gpio resources at device
    removal automagically.  After this patch, you don't have to call
    snd_soc_jack_free_gpios() manually as long as it's managed from the
    machine driver.
    
    What about the gpios assigned in other levels?  Well, you might still
    need to free the resources manually, depending on how the component
    unbind works.
    Signed-off-by: NTakashi Iwai <tiwai@suse.de>
    Signed-off-by: NMark Brown <broonie@kernel.org>
    bd29ae96
soc-jack.c 13.1 KB