]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ASoC: jz4740: Use of_device_get_match_data()
authorStephen Boyd <swboyd@chromium.org>
Fri, 4 Oct 2019 21:43:31 +0000 (14:43 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 7 Oct 2019 12:52:26 +0000 (13:52 +0100)
commit67ad656bdd703157154d0db5bf1b35a5a86073b9
tree8c78036431e3679d8aed4c5343edbe50d7ea6962
parent01400bfb2ea76a399448486e2d26f2f1b5a77787
ASoC: jz4740: Use of_device_get_match_data()

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: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20191004214334.149976-8-swboyd@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/jz4740/jz4740-i2s.c