Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752574AbbKJMpC (ORCPT ); Tue, 10 Nov 2015 07:45:02 -0500 Received: from smtp2-g21.free.fr ([212.27.42.2]:30110 "EHLO smtp2-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751133AbbKJMpA (ORCPT ); Tue, 10 Nov 2015 07:45:00 -0500 Subject: Re: Grafting old platform drivers onto a new DT kernel To: Mans Rullgard Cc: Javier Martinez Canillas , Andrew Lunn , LKML , Linux ARM , Marc Zyngier , Jason Cooper , Thomas Gleixner , Ulf Hansson References: <563B3749.50701@free.fr> <20151105151559.GA16666@lunn.ch> <5640B877.4020108@free.fr> <5640C4BF.2010204@free.fr> <5640D1F3.1010100@free.fr> From: Mason Message-ID: <5641E6C0.8090507@free.fr> Date: Tue, 10 Nov 2015 13:44:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 SeaMonkey/2.38 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 766 Lines: 25 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/