From: "H. Peter Anvin" <hpa@zytor.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Daniel Drake <dsd@laptop.org>,
cbou@mail.ru, linux-kernel@vger.kernel.org, x86@kernel.org,
tglx@linutronix.de, mingo@redhat.com, dilinger@queued.net,
dmitry.torokhov@gmail.com
Subject: Re: [PATCH v3] olpc_battery: convert to platform device
Date: Wed, 16 Feb 2011 15:39:26 -0800 [thread overview]
Message-ID: <4D5C602E.9050106@zytor.com> (raw)
In-Reply-To: <1297896277.3011.5.camel@macbook.infradead.org>
On 02/16/2011 02:44 PM, David Woodhouse wrote:
> On Wed, 2011-02-16 at 22:28 +0000, Daniel Drake wrote:
>>
>> +static int __init add_common_platform_devices(void)
>> +{
>> + struct platform_device *pdev;
>> +
>> + pdev = platform_device_register_simple("olpc-battery", -1, NULL, 0);
>> + if (IS_ERR(pdev))
>> + return PTR_ERR(pdev);
>> +
>> + return 0;
>> +}
>> +
>
> Still kind of sucks that you have to do this, and can't bind to
> something in the device-tree.
>
Any reason you can't include a device tree in the OLPC kernel?
-hpa
next prev parent reply other threads:[~2011-02-16 23:41 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-16 22:28 [PATCH v3] olpc_battery: convert to platform device Daniel Drake
2011-02-16 22:34 ` Dmitry Torokhov
2011-02-16 22:44 ` David Woodhouse
2011-02-16 23:39 ` H. Peter Anvin [this message]
2011-02-18 23:42 ` Daniel Drake
2011-02-19 3:06 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Andres Salomon
2011-02-19 3:06 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness Andres Salomon
2011-02-19 3:06 ` Andres Salomon
2011-02-19 3:12 ` [PATCH] of/pdt: don't bother parsing pkg2path results, return as-is Andres Salomon
2011-02-19 3:12 ` Andres Salomon
2011-02-19 3:12 ` Andres Salomon
2011-02-23 19:45 ` [PATCH] of/pdt: don't bother parsing pkg2path results, return Grant Likely
2011-02-23 19:45 ` [PATCH] of/pdt: don't bother parsing pkg2path results, return as-is Grant Likely
2011-02-23 19:45 ` Grant Likely
2011-02-23 19:43 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Grant Likely
2011-02-23 19:43 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness Grant Likely
2011-02-23 19:43 ` Grant Likely
2011-02-23 19:54 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Andres Salomon
2011-02-23 19:54 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness Andres Salomon
2011-02-23 19:54 ` Andres Salomon
2011-02-23 20:06 ` Daniel Drake
2011-02-23 20:06 ` Daniel Drake
[not found] ` <AANLkTi=D1eWGsN4JVWEGeHp3AXfpbOOKr9Fq7juGAXtT-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-23 20:37 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Grant Likely
2011-02-23 20:37 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness Grant Likely
2011-02-23 20:37 ` Grant Likely
2011-02-23 20:35 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Grant Likely
2011-02-23 20:35 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness Grant Likely
2011-02-23 23:03 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Andres Salomon
2011-02-23 23:03 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness (v2) Andres Salomon
[not found] ` <20110223150357.5a40793d-pFFUokh25LWsTnJN9+BGXg@public.gmane.org>
2011-02-23 23:28 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Grant Likely
2011-02-23 23:28 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness (v2) Grant Likely
2011-02-23 23:28 ` Grant Likely
2011-02-24 0:16 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Andres Salomon
2011-02-24 0:16 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness (v2) Andres Salomon
2011-02-24 4:06 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Grant Likely
2011-02-24 4:06 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness (v2) Grant Likely
[not found] ` <20110224040638.GB22111-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2011-02-24 4:36 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Andres Salomon
2011-02-24 4:36 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness (v2) Andres Salomon
2011-02-24 4:36 ` Andres Salomon
2011-02-24 5:38 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Grant Likely
2011-02-24 5:38 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness (v2) Grant Likely
2011-02-24 6:38 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Andres Salomon
2011-02-24 6:38 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness (v4) Andres Salomon
2011-02-24 0:34 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Andres Salomon
2011-02-24 0:34 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness (v3) Andres Salomon
2011-02-24 2:47 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Grant Likely
2011-02-24 2:47 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness (v3) Grant Likely
2011-02-24 2:51 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Andres Salomon
2011-02-24 2:51 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness (v3) Andres Salomon
2011-02-24 3:25 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' Grant Likely
2011-02-24 3:25 ` [PATCH] of/pdt: allow DT device matching by fixing 'name' brokenness (v3) Grant Likely
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=4D5C602E.9050106@zytor.com \
--to=hpa@zytor.com \
--cc=cbou@mail.ru \
--cc=dilinger@queued.net \
--cc=dmitry.torokhov@gmail.com \
--cc=dsd@laptop.org \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.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.