ASoC: rt5640: Move checking of device-properties to component probe callback
authorHans de Goede <hdegoede@redhat.com>
Tue, 8 May 2018 15:35:49 +0000 (17:35 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 11 May 2018 02:22:50 +0000 (11:22 +0900)
commit988a5e0162ce75a4440c9181ad6d900473e428ae
tree506de9c50cdd3c96451dac1255f5cdb7121c15a8
parent8e3ebf5e8f0a6da53795d940763cc34f5073c4c3
ASoC: rt5640: Move checking of device-properties to component probe callback

On some platforms the platform code may need to add device-properties,
rather then relying only on properties set by the firmware.

This commit moves the parsing of the device-properties from the i2c-driver
probe() function, which may be called at any time, to the component-driver
probe() function, which gets called after the platform code calls
snd_soc_register_card().

This allows the platform code to attach extra device-properties before
the device-properties are parsed.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5640.c