[PATCH 1/3] ASoC: bt-sco: enable OF support
Sergei Shtylyov
sergei.shtylyov at cogentembedded.com
Wed Jul 17 11:18:37 EDT 2013
Hello.
On 17-07-2013 10:12, Barry Song wrote:
> From: Rongjun Ying <Rongjun.Ying at csr.com>
> this makes users be able to add a bt-sco node in dts instead of
> hardcoding a platform device in mach.
> Signed-off-by: Rongjun Ying <Rongjun.Ying at csr.com>
> Signed-off-by: Barry Song <Baohua.Song at csr.com>
> ---
> sound/soc/codecs/bt-sco.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
> diff --git a/sound/soc/codecs/bt-sco.c b/sound/soc/codecs/bt-sco.c
> index a081d9f..39e7ebe 100644
> --- a/sound/soc/codecs/bt-sco.c
> +++ b/sound/soc/codecs/bt-sco.c
[...]
> @@ -58,6 +66,9 @@ static struct platform_driver bt_sco_driver = {
> .driver = {
> .name = "bt-sco",
> .owner = THIS_MODULE,
> +#ifdef CONFIG_OF
> + .of_match_table = bt_sco_of_match,
> +#endif
.of_match_table = of_match_ptr(bt_sco_of_match),
will get rid of #ifdef here.
WBR, Sergei
More information about the linux-arm-kernel
mailing list