[PATCH] [spi_mpc83xx] Always enable legacy support.

Joakim Tjernlund Joakim.Tjernlund at transmode.se
Thu Jul 2 05:16:12 EST 2009


There are out of tree boards that need this legacy support too.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
---
I hope this is OK. I just discovered that spi didn't work for
me in 2.6.30 and I have no time to work on coverting my boards.
I don't have a clue either on how to do that, any pointers
how to add a few spidev devices via OF?

 drivers/spi/spi_mpc83xx.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/drivers/spi/spi_mpc83xx.c b/drivers/spi/spi_mpc83xx.c
index f4573a9..d167577 100644
--- a/drivers/spi/spi_mpc83xx.c
+++ b/drivers/spi/spi_mpc83xx.c
@@ -882,7 +882,6 @@ static struct of_platform_driver of_mpc83xx_spi_driver = {
 	.remove		= __devexit_p(of_mpc83xx_spi_remove),
 };
 
-#ifdef CONFIG_MPC832x_RDB
 /*
  * 				XXX XXX XXX
  * This is "legacy" platform driver, was used by the MPC8323E-RDB boards
@@ -941,10 +940,6 @@ static void __exit legacy_driver_unregister(void)
 		return;
 	platform_driver_unregister(&mpc83xx_spi_driver);
 }
-#else
-static void __init legacy_driver_register(void) {}
-static void __exit legacy_driver_unregister(void) {}
-#endif /* CONFIG_MPC832x_RDB */
 
 static int __init mpc83xx_spi_init(void)
 {
-- 
1.6.2.3



More information about the Linuxppc-dev mailing list