• Stephen Boyd's avatar
    ASoC: jz4740: Use of_device_get_match_data() · 67ad656b
    Stephen Boyd authored
    This probe function is only called if the device is backed by a DT node,
    so switch this call to of_device_get_match_data() to reduce code size
    and simplify a bit. This also avoids needing to reference a potentially
    undefined variable because of_device_get_match_data() doesn't need to
    know anything beyond the struct device to find the match table.
    
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Cc: Paul Cercueil <paul@crapouillou.net>
    Cc: Liam Girdwood <lgirdwood@gmail.com>
    Cc: Mark Brown <broonie@kernel.org>
    Cc: Jaroslav Kysela <perex@perex.cz>
    Cc: Takashi Iwai <tiwai@suse.com>
    Cc: Rob Herring <robh+dt@kernel.org>
    Cc: Frank Rowand <frowand.list@gmail.com>
    Cc: <alsa-devel@alsa-project.org>
    Signed-off-by: default avatarStephen Boyd <swboyd@chromium.org>
    Link: https://lore.kernel.org/r/20191004214334.149976-8-swboyd@chromium.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    67ad656b
jz4740-i2s.c 13.5 KB