crypto: mediatek - make symbol of_crypto_id static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 12 Jan 2017 15:03:21 +0000 (15:03 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 Jan 2017 10:47:16 +0000 (18:47 +0800)
Fixes the following sparse warning:

drivers/crypto/mediatek/mtk-platform.c:585:27: warning:
 symbol 'of_crypto_id' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mediatek/mtk-platform.c

index 286296fbf15d0846c25fc03c8d626a588620d07d..a9c713d4c7339649e4b8fbb3d94da0061293bace 100644 (file)
@@ -582,7 +582,7 @@ static int mtk_crypto_remove(struct platform_device *pdev)
        return 0;
 }
 
-const struct of_device_id of_crypto_id[] = {
+static const struct of_device_id of_crypto_id[] = {
        { .compatible = "mediatek,eip97-crypto" },
        {},
 };