All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Xenomai core <Xenomai-core@domain.hid>,
	Wolfgang Grandegger <wg@domain.hid>
Subject: Re: [Xenomai-core] Build issue with rtcan and I-pipe for linux 2.6.36 on powerpc.
Date: Mon, 03 Jan 2011 11:32:47 +0100	[thread overview]
Message-ID: <4D21A5CF.9000107@domain.hid> (raw)
In-Reply-To: <4D20D7A7.2090003@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

Hi Gilles,

the attached patch fixes the issue.

On 01/02/2011 08:53 PM, Gilles Chanteperdrix wrote:
> 
> Hi Wolfgang,
> 
> It seems we have an issue building rtcan for mpc5xxx with Linux 2.6.36.
> As far as I understood the of_device structure disappeared and the
> "device tree" bits were integrated in the device structure, which causes
> several errors when building ksrc/drivers/can/mscan/rtcan_mscan_mpc5xxx.c
> 
> Build log details here:
> http://sisyphus.hd.free.fr/~gilles/bx/lite5200/2.6.36-ppc_6xx-gcc-4.2.2/log.html#1

Wolfgang.

[-- Attachment #2: 0001-wrappers-fixup-struct-of_device-for-RTCAN-MPC5xxx-dr.patch --]
[-- Type: text/x-diff, Size: 921 bytes --]

>From 94e2e92946a74bed44b9be208a3cef43e3e52477 Mon Sep 17 00:00:00 2001
From: Wolfgang Grandegger <wg@domain.hid>
Date: Mon, 3 Jan 2011 10:59:09 +0100
Subject: [PATCH] wrappers: fixup "struct of_device" for RTCAN MPC5xxx driver

Since 2.6.36, of_device is just an alias for platform_device.

Signed-off-by: Wolfgang Grandegger <wg@domain.hid>
---
 include/asm-powerpc/wrappers.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/asm-powerpc/wrappers.h b/include/asm-powerpc/wrappers.h
index 7f1214a..fb49307 100644
--- a/include/asm-powerpc/wrappers.h
+++ b/include/asm-powerpc/wrappers.h
@@ -191,4 +191,8 @@ typedef irq_handler_t rthal_irq_host_handler_t;
 #define mpc5xxx_get_bus_frequency(node)	mpc52xx_find_ipb_freq(node)
 #endif
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)
+#define of_device platform_device
+#endif
+
 #endif /* _XENO_ASM_POWERPC_WRAPPERS_H */
-- 
1.7.2.3


  reply	other threads:[~2011-01-03 10:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-02 19:53 [Xenomai-core] Build issue with rtcan and I-pipe for linux 2.6.36 on powerpc Gilles Chanteperdrix
2011-01-03 10:32 ` Wolfgang Grandegger [this message]
2011-01-03 21:11   ` Gilles Chanteperdrix
2011-01-05 20:22   ` Jan Kiszka
2011-01-05 20:25     ` Gilles Chanteperdrix
2011-01-05 20:30       ` Jan Kiszka
2011-01-05 20:39         ` Gilles Chanteperdrix

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=4D21A5CF.9000107@domain.hid \
    --to=wg@domain.hid \
    --cc=Xenomai-core@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.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.