Grafting old platform drivers onto a new DT kernel
Mason
slash.tmp at free.fr
Tue Nov 10 04:44:48 PST 2015
On 09/11/2015 18:13, Måns Rullgård wrote:
> Add something like this:
>
> static const struct of_device_id tangox_sdio_dt_ids[] = {
> { .compatible = "sigma,tangox-sdio" },
> { }
> };
>
> static struct platform_driver tangox_platform_sdio0 = {
> .probe = sdhci_tangox_probe,
It looks like one side effect of this transformation is that
the probe function cannot be __init anymore? Is that correct?
For this one particular driver, it weighs 944 bytes. (I guess
a few kilobytes wasted is no big deal...)
Regards.
More information about the linux-arm-kernel
mailing list