From mboxrd@z Thu Jan 1 00:00:00 1970 From: slash.tmp@free.fr (Mason) Date: Tue, 10 Nov 2015 13:44:48 +0100 Subject: Grafting old platform drivers onto a new DT kernel In-Reply-To: References: <563B3749.50701@free.fr> <20151105151559.GA16666@lunn.ch> <5640B877.4020108@free.fr> <5640C4BF.2010204@free.fr> <5640D1F3.1010100@free.fr> Message-ID: <5641E6C0.8090507@free.fr> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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.