diff options
author | Dan Streetman <ddstreet@ieee.org> | 2015-05-07 13:49:19 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-11 15:06:47 +0800 |
commit | 99182a42b7ef3d5e4180992ce01befd9e87526d2 (patch) | |
tree | 56b0d4e29202a01f0c400b8a2db12ad29eaa11e4 /drivers/crypto/nx/nx-842.c | |
parent | 959e6659b6f74ec1fa4d391a3b88d63dc0189f36 (diff) | |
download | talos-obmc-linux-99182a42b7ef3d5e4180992ce01befd9e87526d2.tar.gz talos-obmc-linux-99182a42b7ef3d5e4180992ce01befd9e87526d2.zip |
crypto: nx - add PowerNV platform NX-842 driver
Add driver for NX-842 hardware on the PowerNV platform.
This allows the use of the 842 compression hardware coprocessor on
the PowerNV platform.
Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/nx/nx-842.c')
-rw-r--r-- | drivers/crypto/nx/nx-842.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/crypto/nx/nx-842.c b/drivers/crypto/nx/nx-842.c index 160fe2d97336..bf2823ceaf4e 100644 --- a/drivers/crypto/nx/nx-842.c +++ b/drivers/crypto/nx/nx-842.c @@ -164,7 +164,9 @@ static __init int nx842_init(void) { pr_info("loading\n"); - if (of_find_compatible_node(NULL, NULL, NX842_PSERIES_COMPAT_NAME)) + if (of_find_compatible_node(NULL, NULL, NX842_POWERNV_COMPAT_NAME)) + request_module_nowait(NX842_POWERNV_MODULE_NAME); + else if (of_find_compatible_node(NULL, NULL, NX842_PSERIES_COMPAT_NAME)) request_module_nowait(NX842_PSERIES_MODULE_NAME); else pr_err("no nx842 driver found.\n"); |