[alsa-devel] [PATCH 1/2] ALSA: ASoC: add DT bindings for cs4270

Daniel Mack zonque at gmail.com
Tue Jul 24 22:26:53 CEST 2012


On 24.07.2012 22:22, Timur Tabi wrote:
> Daniel Mack wrote:
> 
>> +/*
>> + * cs4270_of_match - the device tree bindings
>> + */
>> +static const struct of_device_id cs4270_of_match[] = {
>> +	{ .compatible = "cirrus,cs4270", },
>> +	{ }
>> +};
>> +MODULE_DEVICE_TABLE(of, cs4270_of_match);
>> +
> 
> Why is this necessary?  The CS4270 driver works just fine on our
> device-tree enabled boards.
> 

How do you instanciate it then? Somehow the DT core must know which
device to probe for a node, right?



Daniel


More information about the Alsa-devel mailing list