From: slash.tmp@free.fr (Mason)
To: linux-arm-kernel@lists.infradead.org
Subject: Grafting old platform drivers onto a new DT kernel
Date: Tue, 10 Nov 2015 13:44:48 +0100 [thread overview]
Message-ID: <5641E6C0.8090507@free.fr> (raw)
In-Reply-To: <yw1xh9kv5c60.fsf@unicorn.mansr.com>
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.
WARNING: multiple messages have this Message-ID (diff)
From: Mason <slash.tmp@free.fr>
To: Mans Rullgard <mans@mansr.com>
Cc: Javier Martinez Canillas <javier@dowhile0.org>,
Andrew Lunn <andrew@lunn.ch>, LKML <linux-kernel@vger.kernel.org>,
Linux ARM <linux-arm-kernel@lists.infradead.org>,
Marc Zyngier <marc.zyngier@arm.com>,
Jason Cooper <jason@lakedaemon.net>,
Thomas Gleixner <tglx@linutronix.de>,
Ulf Hansson <ulf.hansson@linaro.org>
Subject: Re: Grafting old platform drivers onto a new DT kernel
Date: Tue, 10 Nov 2015 13:44:48 +0100 [thread overview]
Message-ID: <5641E6C0.8090507@free.fr> (raw)
In-Reply-To: <yw1xh9kv5c60.fsf@unicorn.mansr.com>
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.
next prev parent reply other threads:[~2015-11-10 12:44 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-05 11:02 Grafting old platform drivers onto a new DT kernel Mason
2015-11-05 11:02 ` Mason
2015-11-05 15:15 ` Andrew Lunn
2015-11-05 15:15 ` Andrew Lunn
2015-11-05 15:42 ` Javier Martinez Canillas
2015-11-05 15:42 ` Javier Martinez Canillas
2015-11-09 15:15 ` Mason
2015-11-09 15:15 ` Mason
2015-11-09 15:36 ` Marc Zyngier
2015-11-09 15:36 ` Marc Zyngier
2016-02-03 15:33 ` Sebastian Frias
2015-11-09 15:40 ` Måns Rullgård
2015-11-09 15:40 ` Måns Rullgård
2015-11-09 16:07 ` Mason
2015-11-09 16:07 ` Mason
2015-11-09 16:12 ` Måns Rullgård
2015-11-09 16:12 ` Måns Rullgård
2015-11-09 17:03 ` Mason
2015-11-09 17:03 ` Mason
2015-11-09 17:13 ` Måns Rullgård
2015-11-09 17:13 ` Måns Rullgård
2015-11-10 12:44 ` Mason [this message]
2015-11-10 12:44 ` Mason
2015-11-10 12:56 ` Arnd Bergmann
2015-11-10 12:56 ` Arnd Bergmann
2015-11-09 16:26 ` Russell King - ARM Linux
2015-11-09 16:26 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5641E6C0.8090507@free.fr \
--to=slash.tmp@free.fr \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.