From 6615467ebc20abe914b41fed1371af5290e5387e Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Thu, 11 Jun 2009 22:27:20 +0200 Subject: [PATCH] --- yaml --- r: 153743 b: refs/heads/master c: 3fade49b734cca2d8c4f1bcd7c3023302b557f3b h: refs/heads/master i: 153741: 6bf37e3a422ae68edf68a02818fba3c1306070a8 153739: 1fb5655bda2fac28e7a68ebfd059f008999fcc40 153735: b8717fc8f35972e5482b0df87c53d52e5bb8a77c 153727: 79896b63d2c658a4784006b440c64ac36558518f v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-orion5x/common.c | 10 +++++++++- trunk/arch/arm/mach-orion5x/common.h | 1 - 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 5ec02ac7f027..ad0701273e45 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 97f8a27a5cfb08c9ce3abc90aaafb791759aed94 +refs/heads/master: 3fade49b734cca2d8c4f1bcd7c3023302b557f3b diff --git a/trunk/arch/arm/mach-orion5x/common.c b/trunk/arch/arm/mach-orion5x/common.c index eafcc49009ea..f87fa1253803 100644 --- a/trunk/arch/arm/mach-orion5x/common.c +++ b/trunk/arch/arm/mach-orion5x/common.c @@ -562,7 +562,7 @@ static struct platform_device orion5x_crypto_device = { .resource = orion5x_crypto_res, }; -int __init orion5x_crypto_init(void) +static int __init orion5x_crypto_init(void) { int ret; @@ -696,6 +696,14 @@ void __init orion5x_init(void) disable_hlt(); } + /* + * The 5082/5181l/5182/6082/6082l/6183 have crypto + * while 5180n/5181/5281 don't have crypto. + */ + if ((dev == MV88F5181_DEV_ID && rev >= MV88F5181L_REV_A0) || + dev == MV88F5182_DEV_ID || dev == MV88F6183_DEV_ID) + orion5x_crypto_init(); + /* * Register watchdog driver */ diff --git a/trunk/arch/arm/mach-orion5x/common.h b/trunk/arch/arm/mach-orion5x/common.h index de483e83edd7..8f004503c96d 100644 --- a/trunk/arch/arm/mach-orion5x/common.h +++ b/trunk/arch/arm/mach-orion5x/common.h @@ -38,7 +38,6 @@ void orion5x_spi_init(void); void orion5x_uart0_init(void); void orion5x_uart1_init(void); void orion5x_xor_init(void); -int orion5x_crypto_init(void); /* * PCIe/PCI functions.