crypto: ux500/crypt: add missing __iomem qualifiers
authorFabio Baltieri <fabio.baltieri@linaro.org>
Tue, 25 Jun 2013 08:54:46 +0000 (10:54 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 25 Jun 2013 12:51:22 +0000 (14:51 +0200)
Add missing __iomem to struct cryp_register pointers, this solve some
"incorrect type in initializer (different address spaces)" sparse
warnings.

Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/crypto/ux500/cryp/cryp.c

index 3eafa903ebcd98f700c6c78d9483f0369b5d4c76..43a0c8a26ab0c56c25b56f425d9ce8192780e54b 100644 (file)
@@ -291,7 +291,7 @@ void cryp_save_device_context(struct cryp_device_data *device_data,
                              int cryp_mode)
 {
        enum cryp_algo_mode algomode;
-       struct cryp_register *src_reg = device_data->base;
+       struct cryp_register __iomem *src_reg = device_data->base;
        struct cryp_config *config =
                (struct cryp_config *)device_data->current_ctx;
 
@@ -349,7 +349,7 @@ void cryp_save_device_context(struct cryp_device_data *device_data,
 void cryp_restore_device_context(struct cryp_device_data *device_data,
                                 struct cryp_device_context *ctx)
 {
-       struct cryp_register *reg = device_data->base;
+       struct cryp_register __iomem *reg = device_data->base;
        struct cryp_config *config =
                (struct cryp_config *)device_data->current_ctx;