linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi_mpc8xxx: issue with using definition of pram in Device Tree
@ 2010-09-16  7:05 christophe leroy
  2010-09-24  7:10 ` Grant Likely
  0 siblings, 1 reply; 6+ messages in thread
From: christophe leroy @ 2010-09-16  7:05 UTC (permalink / raw)
  To: David Brownell, Grant Likely, spi-devel-general, linux-kernel,
	linuxppc-dev

This patch applies to 2.6.34.7 and 2.6.35.4
It fixes an issue during the probe for CPM1 with definition of parameter ram from DTS

Signed-off-by: christophe leroy <christophe.leroy@c-s.fr>

diff -urN b/drivers/spi/spi_mpc8xxx.c c/drivers/spi/spi_mpc8xxx.c
--- b/drivers/spi/spi_mpc8xxx.c	2010-09-08 16:43:50.000000000 +0200
+++ c/drivers/spi/spi_mpc8xxx.c	2010-09-08 16:44:03.000000000 +0200
@@ -822,7 +822,7 @@
 	if (!iprop || size != sizeof(*iprop) * 4)
 		return -ENOMEM;
 
-	spi_base_ofs = cpm_muram_alloc_fixed(iprop[2], 2);
+	spi_base_ofs = iprop[2];
 	if (IS_ERR_VALUE(spi_base_ofs))
 		return -ENOMEM;
 
@@ -844,7 +844,6 @@
 			return spi_base_ofs;
 	}
 
-	cpm_muram_free(spi_base_ofs);
 	return pram_ofs;
 }

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-09-24 15:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-16  7:05 [PATCH] spi_mpc8xxx: issue with using definition of pram in Device Tree christophe leroy
2010-09-24  7:10 ` Grant Likely
2010-09-24  7:20   ` LEROY Christophe
2010-09-24  7:57     ` Anton Vorontsov
2010-09-24 15:12       ` Scott Wood
2010-09-24 15:07   ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).