crypto: drivers - Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Fri, 14 Jul 2023 17:44:18 +0000 (11:44 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Aug 2023 03:04:23 +0000 (11:04 +0800)
The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
33 files changed:
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
drivers/crypto/amlogic/amlogic-gxl-core.c
drivers/crypto/aspeed/aspeed-acry.c
drivers/crypto/atmel-aes.c
drivers/crypto/atmel-ecc.c
drivers/crypto/atmel-sha.c
drivers/crypto/atmel-tdes.c
drivers/crypto/bcm/cipher.c
drivers/crypto/caam/ctrl.c
drivers/crypto/caam/jr.c
drivers/crypto/caam/qi.c
drivers/crypto/ccree/cc_driver.c
drivers/crypto/exynos-rng.c
drivers/crypto/gemini/sl3516-ce-core.c
drivers/crypto/img-hash.c
drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
drivers/crypto/n2_core.c
drivers/crypto/omap-aes.c
drivers/crypto/omap-des.c
drivers/crypto/omap-sham.c
drivers/crypto/rockchip/rk3288_crypto.c
drivers/crypto/s5p-sss.c
drivers/crypto/sa2ul.c
drivers/crypto/sahara.c
drivers/crypto/starfive/jh7110-cryp.c
drivers/crypto/starfive/jh7110-hash.c
drivers/crypto/stm32/stm32-cryp.c
drivers/crypto/stm32/stm32-hash.c
drivers/crypto/talitos.c
drivers/crypto/xilinx/zynqmp-aes-gcm.c
drivers/crypto/xilinx/zynqmp-sha.c

index 51a3a7b5b9850dd4a102aa1a6ce31ff1ca2c76dc..3bcfcfc3708426ae28f967d43f6cbccb2c29960c 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/io.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <crypto/scatterwalk.h>
 #include <linux/scatterlist.h>
index 1c2c32d0568e8b6fe7be601b943fdc2f74c60efe..d4ccd5254280bcf8e2a37df9eae83106507dbff6 100644 (file)
@@ -24,7 +24,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/reset.h>
index 62c001c9efc2e45bb6d132d1c2e36e5e2dab5273..4a9587285c04f51a34958c0941a8979b050aa35f 100644 (file)
@@ -23,7 +23,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/reset.h>
index 9846d791c956eb8145d3d7169714d26eb816fb6a..da6dfe0f9ac33232fd77c09a26be50d34d91a02c 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 
 #include "amlogic-gxl.h"
index 2a970367e6861e4e586e5c1f9c213aed76bda598..247c568aa8dfe3eeeb99c985cbd46822cd342ba3 100644 (file)
@@ -15,9 +15,6 @@
 #include <linux/mfd/syscon.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
-#include <linux/of_address.h>
-#include <linux/of_irq.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
index 9692254faad98f805fce9b17a6f308b48ee31b9d..55b5f577b01c84a92a78df73dcb6783c489b6827 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/irq.h>
 #include <linux/scatterlist.h>
 #include <linux/dma-mapping.h>
-#include <linux/of_device.h>
+#include <linux/mod_devicetable.h>
 #include <linux/delay.h>
 #include <linux/crypto.h>
 #include <crypto/scatterwalk.h>
@@ -2533,13 +2533,11 @@ static void atmel_aes_get_cap(struct atmel_aes_dev *dd)
        }
 }
 
-#if defined(CONFIG_OF)
 static const struct of_device_id atmel_aes_dt_ids[] = {
        { .compatible = "atmel,at91sam9g46-aes" },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, atmel_aes_dt_ids);
-#endif
 
 static int atmel_aes_probe(struct platform_device *pdev)
 {
@@ -2678,7 +2676,7 @@ static struct platform_driver atmel_aes_driver = {
        .remove         = atmel_aes_remove,
        .driver         = {
                .name   = "atmel_aes",
-               .of_match_table = of_match_ptr(atmel_aes_dt_ids),
+               .of_match_table = atmel_aes_dt_ids,
        },
 };
 
index 432beabd79e68db84c99d69735dd11a90f68d507..590ea984c6220a64a1a2dd485aec8a3280f90e2e 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/scatterlist.h>
 #include <linux/slab.h>
 #include <linux/workqueue.h>
index 99a9ff8e743f2f9c18ee9672b0df33209165681f..3622120add625af2242201e5964ef699def24a5c 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/irq.h>
 #include <linux/scatterlist.h>
 #include <linux/dma-mapping.h>
-#include <linux/of_device.h>
+#include <linux/mod_devicetable.h>
 #include <linux/delay.h>
 #include <linux/crypto.h>
 #include <crypto/scatterwalk.h>
@@ -2571,14 +2571,12 @@ static void atmel_sha_get_cap(struct atmel_sha_dev *dd)
        }
 }
 
-#if defined(CONFIG_OF)
 static const struct of_device_id atmel_sha_dt_ids[] = {
        { .compatible = "atmel,at91sam9g46-sha" },
        { /* sentinel */ }
 };
 
 MODULE_DEVICE_TABLE(of, atmel_sha_dt_ids);
-#endif
 
 static int atmel_sha_probe(struct platform_device *pdev)
 {
@@ -2708,7 +2706,7 @@ static struct platform_driver atmel_sha_driver = {
        .remove         = atmel_sha_remove,
        .driver         = {
                .name   = "atmel_sha",
-               .of_match_table = of_match_ptr(atmel_sha_dt_ids),
+               .of_match_table = atmel_sha_dt_ids,
        },
 };
 
index ba8981f326cf20e37a2ed6938d965b59f9508df1..099b32a10dd753d8ce5230fd53dba176cad42c87 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/irq.h>
 #include <linux/scatterlist.h>
 #include <linux/dma-mapping.h>
-#include <linux/of_device.h>
+#include <linux/mod_devicetable.h>
 #include <linux/delay.h>
 #include <linux/crypto.h>
 #include <crypto/scatterwalk.h>
@@ -1139,13 +1139,11 @@ static void atmel_tdes_get_cap(struct atmel_tdes_dev *dd)
        }
 }
 
-#if defined(CONFIG_OF)
 static const struct of_device_id atmel_tdes_dt_ids[] = {
        { .compatible = "atmel,at91sam9g46-tdes" },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, atmel_tdes_dt_ids);
-#endif
 
 static int atmel_tdes_probe(struct platform_device *pdev)
 {
@@ -1274,7 +1272,7 @@ static struct platform_driver atmel_tdes_driver = {
        .remove         = atmel_tdes_remove,
        .driver         = {
                .name   = "atmel_tdes",
-               .of_match_table = of_match_ptr(atmel_tdes_dt_ids),
+               .of_match_table = atmel_tdes_dt_ids,
        },
 };
 
index 4c46357e2570e6e75b315caf130f8960e7b231bd..689be70d69c18b955ef58bf30a8fe6e3db12580f 100644 (file)
@@ -15,8 +15,7 @@
 #include <linux/kthread.h>
 #include <linux/rtnetlink.h>
 #include <linux/sched.h>
-#include <linux/of_address.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/io.h>
 #include <linux/bitops.h>
 
index 2a228a36fa15adc73ed14aaeccd84decdf94cfb9..f63c3ed26c37ba4876d5003822587564e387e4e1 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/device.h>
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
+#include <linux/platform_device.h>
 #include <linux/sys_soc.h>
 #include <linux/fsl/mc.h>
 
index 07ec2f27cc689ab53a9482f48c6a83abac1c1c56..b1f1b393b98e6ca8a8f1d600b9bb94056adcd060 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <linux/of_irq.h>
 #include <linux/of_address.h>
+#include <linux/platform_device.h>
 
 #include "compat.h"
 #include "ctrl.h"
index 2ad2c10358563a865d6cf9cb088399cc590557b8..46a083849a8ee6b80d8322077118b95e2bfa4fca 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/kernel.h>
 #include <linux/kthread.h>
 #include <linux/netdevice.h>
+#include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/string.h>
 #include <soc/fsl/qman.h>
index c57f929805d5c4fa0d91f3adbbd27f8232efc168..0f0694037dd71240993e3d1cda44e815ea04fdb0 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/of.h>
 #include <linux/clk.h>
 #include <linux/of_address.h>
-#include <linux/of_device.h>
 #include <linux/pm_runtime.h>
 
 #include "cc_driver.h"
index b1df66be9adc25d173df52d3c612bd91dc0e1e21..5d60a4bcb51188c1dbdc7b49e55710caa93cc187 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/io.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 
 #include <crypto/internal/rng.h>
index 0fd47ab9df5c7d281e0232400917ba8e759703fc..0f43c6e39bb9d68d148706f4c94b30634e79758e 100644 (file)
@@ -21,7 +21,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/reset.h>
index 359aa2b41016e77af00e3462b5a3916e7491738f..45063693859c014ee9b2794808c126a2bcdea3de 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 #include <linux/scatterlist.h>
 
@@ -1105,7 +1105,7 @@ static struct platform_driver img_hash_driver = {
        .driver         = {
                .name   = "img-hash-accelerator",
                .pm     = &img_hash_pm_ops,
-               .of_match_table = of_match_ptr(img_hash_match),
+               .of_match_table = img_hash_match,
        }
 };
 module_platform_driver(img_hash_driver);
index 57a20281ead81caf380d6211f481882610e0bdf2..daba8ca05dbe42c283fcb79fd1ddb92c7a3e85a9 100644 (file)
@@ -16,8 +16,9 @@
 #include <linux/err.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/platform_device.h>
 #include <linux/string.h>
 
 #include "ocs-hcu.h"
index 4f6ca229ee5e855ffd1207d4603047158daf67ce..d5a32d71a3e970b7943d5c4985440e4ce0a79dc1 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_device.h>
+#include <linux/platform_device.h>
 #include <linux/cpumask.h>
 #include <linux/slab.h>
 #include <linux/interrupt.h>
index ea13312181058a2f4bd6f40f9cc569cae6cf63dd..ed83023dd77a8d3c9ed18e874fa36a2f83351332 100644 (file)
@@ -28,7 +28,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/of_address.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
index ae9e9e4eb94c133cb42b50993ffe61d3caa8b0fc..089dd45eaedd70adf6b26e5f035cc4cfe566fd1e 100644 (file)
@@ -29,8 +29,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
-#include <linux/of_address.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/scatterlist.h>
index 4b79d54fd67126588d784e189548f09d4039a9bb..a6b4a0b3ace30dbde0e4fd164793c45f68223e06 100644 (file)
@@ -30,7 +30,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/platform_device.h>
index 937826c50470f70b47ae965b30b773e299e9aa12..77d5705a5d960dc639dd1c4cc96acf93657d9531 100644 (file)
@@ -23,7 +23,6 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/reset.h>
 #include <linux/spinlock.h>
 
index 1c4d5fb05d69df2fd1f8058fb1de94b6ef517497..fe8cf9ba8005c3d482b54b6f09b3580a8588ef2d 100644 (file)
@@ -20,7 +20,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/scatterlist.h>
 
index df5f9d675c572ea9238c6133cf4f3d15a3d14c2d..6238d34f8db2f6dd478d907331726d301a6977e3 100644 (file)
@@ -15,7 +15,8 @@
 #include <linux/dmapool.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 
index 4c799df3e8838bd585695a0a1ed967d43bf735d9..62d93526920f8002adf0c28b371d35a0b5a38fb9 100644 (file)
@@ -27,7 +27,6 @@
 #include <linux/kthread.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/spinlock.h>
 
index 890ad5259329f12ce32bba1e19257f8bbf7a4296..08e974e0dd1247b76e83f2611274e37fae0d11cf 100644 (file)
@@ -15,8 +15,8 @@
 #include <linux/interrupt.h>
 #include <linux/iopoll.h>
 #include <linux/kernel.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/reset.h>
index 739e944229af3c85764fe0ef04ee8ed845045dbf..cc7650198d70358a5e517617d1458ef4025d8986 100644 (file)
@@ -17,7 +17,6 @@
 #include <linux/iopoll.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/reset.h>
index c67239686b1eda100e97a531c9aa1f7a3fffe29c..f095f0065428a9c5bade69d802690d58a9d2934b 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/reset.h>
index 53cf922d1a384fd2bd609164b65dd2e5825a44bf..2b2382d4332c531b8263e500f2737ef9162573d8 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/iopoll.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/reset.h>
index bb27f011cf31ee0b1d8598abf595c42b3fd9105c..4ca4fbd227bce135502657e4aef4d3ae9f647870 100644 (file)
@@ -19,9 +19,9 @@
 #include <linux/interrupt.h>
 #include <linux/crypto.h>
 #include <linux/hw_random.h>
-#include <linux/of_address.h>
+#include <linux/of.h>
 #include <linux/of_irq.h>
-#include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <linux/dma-mapping.h>
 #include <linux/io.h>
 #include <linux/spinlock.h>
index 42fe2b7afef2690e6dfa6c5c74e02b7b4cfb06bd..ce335578b759ed9531a35fe54b4e61bb16b8ca58 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/firmware/xlnx-zynqmp.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 #include <linux/string.h>
 
index 43ff170ff1c242df694b6c5d6ec74ca3aba7b16a..426bf1a72ba66b478d9764c05d036f34d68a03ea 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 
 #define ZYNQMP_DMA_BIT_MASK            32U