All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matteo Facchinetti <matteo.facchinetti@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-core] socket can compile broken
Date: Sun, 26 Jul 2009 15:58:25 +0200	[thread overview]
Message-ID: <4A6C6101.5050707@domain.hid> (raw)

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

Hi,

I've upgrade xenomai to the last 2.4.8 (git) version.
I'm using kernel 2.6.24powerpc and for compile socket-can module, need 
to change MPC5xxx_GPIO define.
In this kernel version I havn't mpc5xxx_gpio_find_and_map() function but 
only mpc52xx_find_and_map("mpc5200-gpio").

Regards.

Matteo Facchinetti
Sirius Electronic Systems



[-- Attachment #2: Fix-MPC5xxx_GPIO_x_kern2.6.24.patch --]
[-- Type: text/x-diff, Size: 666 bytes --]

diff --git a/ksrc/drivers/can/mscan/rtcan_mscan_regs.h b/ksrc/drivers/can/mscan/rtcan_mscan_regs.h
index ad996ad..e6fd7ed 100644
--- a/ksrc/drivers/can/mscan/rtcan_mscan_regs.h
+++ b/ksrc/drivers/can/mscan/rtcan_mscan_regs.h
@@ -42,8 +42,10 @@ static inline void __iomem *mpc5xxx_gpio_find_and_map(void)
 	    ofn = of_find_compatible_node(NULL, NULL, "fsl,mpc5200-gpio");
 	return ofn ? of_iomap(ofn, 0) : NULL;
 }
-#endif
 #define MPC5xxx_GPIO    mpc5xxx_gpio_find_and_map()
+#else
+#define MPC5xxx_GPIO    mpc52xx_find_and_map("mpc5200-gpio")
+#endif
 #define mpc5xxx_gpio	mpc52xx_gpio
 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
 #include <asm/mpc5xxx.h>

             reply	other threads:[~2009-07-26 13:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-26 13:58 Matteo Facchinetti [this message]
2009-08-15 21:48 ` [Xenomai-core] socket can compile broken Philippe Gerum

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=4A6C6101.5050707@domain.hid \
    --to=matteo.facchinetti@domain.hid \
    --cc=xenomai@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.