]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: samsung/smartq: use dynamic registration
authorArnd Bergmann <arnd@arndb.de>
Wed, 9 Jul 2014 09:09:42 +0000 (11:09 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 1 Dec 2015 20:50:24 +0000 (21:50 +0100)
commit26345335bee1025bc61d3b0564997d5ef426ba8e
tree7c0144ec3d6b25346177c41a70d2e0378fcda198
parent57b3135d35fc6bd56feb200770b44883c4abc573
ASoC: samsung/smartq: use dynamic registration

As a prerequisite for moving s3c64xx into multiplatform configurations,
we need to change the smartq audio driver to stop using hardcoded
gpio numbers from the header file, and instead pass the gpio data
through platform_data.

In order to do that, we also move the code to use module_platform_driver
and register the platform device using platform_device_register_simple
and register the gpios through the gpiod API.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
arch/arm/mach-s3c64xx/mach-smartq.c
sound/soc/samsung/smartq_wm8987.c