* [patch] Fix compilation in locomo.c
@ 2005-07-26 6:30 Pavel Machek
2005-09-04 10:33 ` Russell King
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2005-07-26 6:30 UTC (permalink / raw)
To: rpurdie, lenz, kernel list, rmk
Do not access children in struct device directly, use
device_for_each_child helper instead. It fixes compilation.
Signed-off-by: Pavel Machek <pavel@suse.cz>
---
commit 3d7f15c66bc66c480d468e2c4d623949bba0d41f
tree 9734f5a58c31dade74b1b35c1ce0b0d6d44da589
parent 6cd7322dce560001570713269630390754881e5d
author <pavel@amd.(none)> Tue, 26 Jul 2005 08:29:38 +0200
committer <pavel@amd.(none)> Tue, 26 Jul 2005 08:29:38 +0200
arch/arm/common/locomo.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c
--- a/arch/arm/common/locomo.c
+++ b/arch/arm/common/locomo.c
@@ -651,15 +651,15 @@ __locomo_probe(struct device *me, struct
return ret;
}
-static void __locomo_remove(struct locomo *lchip)
+static int locomo_remove_child(struct device *dev, void *data)
{
- struct list_head *l, *n;
-
- list_for_each_safe(l, n, &lchip->dev->children) {
- struct device *d = list_to_dev(l);
+ device_unregister(dev);
+ return 0;
+}
- device_unregister(d);
- }
+static void __locomo_remove(struct locomo *lchip)
+{
+ device_for_each_child(lchip->dev, NULL, locomo_remove_child);
if (lchip->irq != NO_IRQ) {
set_irq_chained_handler(lchip->irq, NULL);
--
teflon -- maybe it is a trademark, but it should not be.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] Fix compilation in locomo.c
2005-07-26 6:30 [patch] Fix compilation in locomo.c Pavel Machek
@ 2005-09-04 10:33 ` Russell King
2005-09-06 14:11 ` Richard Purdie
0 siblings, 1 reply; 4+ messages in thread
From: Russell King @ 2005-09-04 10:33 UTC (permalink / raw)
To: Pavel Machek; +Cc: rpurdie, lenz, kernel list
On Tue, Jul 26, 2005 at 08:30:43AM +0200, Pavel Machek wrote:
> Do not access children in struct device directly, use
> device_for_each_child helper instead. It fixes compilation.
>
> Signed-off-by: Pavel Machek <pavel@suse.cz>
Given up waiting for John/Richard to okay this, applied anyway.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] Fix compilation in locomo.c
2005-09-04 10:33 ` Russell King
@ 2005-09-06 14:11 ` Richard Purdie
2005-09-08 23:31 ` John Lenz
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2005-09-06 14:11 UTC (permalink / raw)
To: Russell King; +Cc: Pavel Machek, lenz, kernel list
On Sun, 2005-09-04 at 11:33 +0100, Russell King wrote:
> On Tue, Jul 26, 2005 at 08:30:43AM +0200, Pavel Machek wrote:
> > Do not access children in struct device directly, use
> > device_for_each_child helper instead. It fixes compilation.
> >
> > Signed-off-by: Pavel Machek <pavel@suse.cz>
>
> Given up waiting for John/Richard to okay this, applied anyway.
You did get a response from me on 20/8/05 which said:
"Locomo is outside my area of expertise and its not present on the
devices I use/maintain, hence this is something John would have the
definitive opinion on. The patch looks sane to me though."
I suspect John is between email addresses at the moment. Hopefully he'll
be back with us soon.
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] Fix compilation in locomo.c
2005-09-06 14:11 ` Richard Purdie
@ 2005-09-08 23:31 ` John Lenz
0 siblings, 0 replies; 4+ messages in thread
From: John Lenz @ 2005-09-08 23:31 UTC (permalink / raw)
To: Richard Purdie; +Cc: Russell King, Pavel Machek, kernel list
On Tue, September 6, 2005 9:11 am, Richard Purdie said:
> On Sun, 2005-09-04 at 11:33 +0100, Russell King wrote:
>> On Tue, Jul 26, 2005 at 08:30:43AM +0200, Pavel Machek wrote:
>> > Do not access children in struct device directly, use
>> > device_for_each_child helper instead. It fixes compilation.
>> >
>> > Signed-off-by: Pavel Machek <pavel@suse.cz>
>>
>> Given up waiting for John/Richard to okay this, applied anyway.
>
> You did get a response from me on 20/8/05 which said:
>
> "Locomo is outside my area of expertise and its not present on the
> devices I use/maintain, hence this is something John would have the
> definitive opinion on. The patch looks sane to me though."
>
> I suspect John is between email addresses at the moment. Hopefully he'll
> be back with us soon.
Yeah... I'm now back but haven't yet had a chance to look at any patches
or anything that has been floating around. Next week I will look closer
at these patches (even if they have already been applied).
John
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-08 23:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-26 6:30 [patch] Fix compilation in locomo.c Pavel Machek
2005-09-04 10:33 ` Russell King
2005-09-06 14:11 ` Richard Purdie
2005-09-08 23:31 ` John Lenz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox