ASoC: sam9g20: using platform device for audio part

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Bo Shen
2012-10-11 10:38:16 +08:00
committed by Mark Brown
parent 242b9bb83e
commit bac91462e8
2 changed files with 26 additions and 0 deletions

View File

@@ -768,6 +768,14 @@ static inline void configure_ssc_pins(unsigned pins)
at91_set_A_periph(AT91_PIN_PB21, 1);
}
static struct platform_device at91sam9260_ssc_dai_device = {
.name = "atmel-ssc-dai",
.id = 0,
.dev = {
.parent = &(at91sam9260_ssc_device.dev),
},
};
/*
* SSC controllers are accessed through library code, instead of any
* kind of all-singing/all-dancing driver. For example one could be
@@ -792,6 +800,7 @@ void __init at91_add_device_ssc(unsigned id, unsigned pins)
}
platform_device_register(pdev);
platform_device_register(&at91sam9260_ssc_dai_device);
}
#else