All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabrice Gasnier <fabrice.gasnier@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai rtcan build issue on MPC5121 (kernel >= 2.6.35)
Date: Tue, 03 Jan 2012 09:47:36 +0100	[thread overview]
Message-ID: <4F02C0A8.5020908@domain.hid> (raw)
In-Reply-To: <4EF8B4E8.8060003@domain.hid>

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

Dear Gilles,

please find attached a properly formatted patch using git (hope so).

Fabrice

> It is not OK, your patch fails to apply. But if you send a properly
> formatted patch, it will be applied. If you do not know how to properly
> format a patch, use "git format-patch".
>

[-- Attachment #2: 0001-mpc5121-can-adapt-to-platform-driver-infrastructure-.patch --]
[-- Type: text/x-patch, Size: 1544 bytes --]

>From 735c80009228d66a77126dd989008a6ca9b1d6b4 Mon Sep 17 00:00:00 2001
From: Fabrice Gasnier <fabrice.gasnier@domain.hid>
Date: Tue, 3 Jan 2012 09:28:40 +0100
Subject: [PATCH] mpc5121 can: adapt to platform driver infrastructure changes for 2.6.35

---
 ksrc/drivers/can/mscan/rtcan_mscan_mpc5xxx.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ksrc/drivers/can/mscan/rtcan_mscan_mpc5xxx.c b/ksrc/drivers/can/mscan/rtcan_mscan_mpc5xxx.c
index 82aea37..e65e0c2 100644
--- a/ksrc/drivers/can/mscan/rtcan_mscan_mpc5xxx.c
+++ b/ksrc/drivers/can/mscan/rtcan_mscan_mpc5xxx.c
@@ -155,7 +155,7 @@ static u32 __devinit mpc512x_can_get_clock(struct of_device *ofdev,
 	}
 
 	/* Determine the MSCAN device index from the physical address */
-	pval = of_get_property(ofdev->node, "reg", &plen);
+	pval = of_get_property(mpc5xxx_get_of_node(ofdev), "reg", &plen);
 	BUG_ON(!pval || plen < sizeof(*pval));
 	clockidx = (*pval & 0x80) ? 1 : 0;
 	if (*pval & 0x2000)
@@ -171,11 +171,11 @@ static u32 __devinit mpc512x_can_get_clock(struct of_device *ofdev,
 	 */
 	if (clock_name && !strcmp(clock_name, "ip")) {
 		*mscan_clksrc = MSCAN_CLKSRC_IPS;
-		freq = mpc5xxx_get_bus_frequency(ofdev->node);
+		freq = mpc5xxx_get_bus_frequency(mpc5xxx_get_of_node(ofdev));
 	} else {
 		*mscan_clksrc = MSCAN_CLKSRC_BUS;
 
-		pval = of_get_property(ofdev->node,
+		pval = of_get_property(mpc5xxx_get_of_node(ofdev),
 				       "fsl,mscan-clock-divider", &plen);
 		if (pval && plen == sizeof(*pval))
 			clockdiv = *pval;
-- 
1.7.0.4


  reply	other threads:[~2012-01-03  8:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-21 11:22 [Xenomai-help] Xenomai rtcan build issue on MPC5121 (kernel >= 2.6.35) Fabrice Gasnier
2011-12-26 17:54 ` Gilles Chanteperdrix
2012-01-03  8:47   ` Fabrice Gasnier [this message]
2012-01-03 21:03     ` Gilles Chanteperdrix
2012-01-04 10:06       ` Fabrice Gasnier
2012-01-04 12:30         ` Wolfgang Grandegger
  -- strict thread matches above, loose matches on Subject: below --
2012-01-04 13:48 Fabrice Gasnier
2012-01-04 15:53 ` Wolfgang Grandegger

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=4F02C0A8.5020908@domain.hid \
    --to=fabrice.gasnier@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.