24 Jul
2012
24 Jul
'12
10:26 p.m.
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