diff options
-rw-r--r-- | arch/arm/mach-orion5x/common.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/common.h | 1 |
2 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index eafcc49009ea..f87fa1253803 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c | |||
@@ -562,7 +562,7 @@ static struct platform_device orion5x_crypto_device = { | |||
562 | .resource = orion5x_crypto_res, | 562 | .resource = orion5x_crypto_res, |
563 | }; | 563 | }; |
564 | 564 | ||
565 | int __init orion5x_crypto_init(void) | 565 | static int __init orion5x_crypto_init(void) |
566 | { | 566 | { |
567 | int ret; | 567 | int ret; |
568 | 568 | ||
@@ -697,6 +697,14 @@ void __init orion5x_init(void) | |||
697 | } | 697 | } |
698 | 698 | ||
699 | /* | 699 | /* |
700 | * The 5082/5181l/5182/6082/6082l/6183 have crypto | ||
701 | * while 5180n/5181/5281 don't have crypto. | ||
702 | */ | ||
703 | if ((dev == MV88F5181_DEV_ID && rev >= MV88F5181L_REV_A0) || | ||
704 | dev == MV88F5182_DEV_ID || dev == MV88F6183_DEV_ID) | ||
705 | orion5x_crypto_init(); | ||
706 | |||
707 | /* | ||
700 | * Register watchdog driver | 708 | * Register watchdog driver |
701 | */ | 709 | */ |
702 | orion5x_wdt_init(); | 710 | orion5x_wdt_init(); |
diff --git a/arch/arm/mach-orion5x/common.h b/arch/arm/mach-orion5x/common.h index de483e83edd7..8f004503c96d 100644 --- a/arch/arm/mach-orion5x/common.h +++ b/arch/arm/mach-orion5x/common.h | |||
@@ -38,7 +38,6 @@ void orion5x_spi_init(void); | |||
38 | void orion5x_uart0_init(void); | 38 | void orion5x_uart0_init(void); |
39 | void orion5x_uart1_init(void); | 39 | void orion5x_uart1_init(void); |
40 | void orion5x_xor_init(void); | 40 | void orion5x_xor_init(void); |
41 | int orion5x_crypto_init(void); | ||
42 | 41 | ||
43 | /* | 42 | /* |
44 | * PCIe/PCI functions. | 43 | * PCIe/PCI functions. |