Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: drivers - Explicitly include correct DT includes

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>

authored by

Rob Herring and committed by
Herbert Xu
b0cc7491 5ce0bc68

+25 -45
-1
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c
··· 14 14 #include <linux/io.h> 15 15 #include <linux/module.h> 16 16 #include <linux/of.h> 17 - #include <linux/of_device.h> 18 17 #include <linux/platform_device.h> 19 18 #include <crypto/scatterwalk.h> 20 19 #include <linux/scatterlist.h>
-1
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c
··· 24 24 #include <linux/kernel.h> 25 25 #include <linux/module.h> 26 26 #include <linux/of.h> 27 - #include <linux/of_device.h> 28 27 #include <linux/platform_device.h> 29 28 #include <linux/pm_runtime.h> 30 29 #include <linux/reset.h>
-1
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
··· 23 23 #include <linux/kernel.h> 24 24 #include <linux/module.h> 25 25 #include <linux/of.h> 26 - #include <linux/of_device.h> 27 26 #include <linux/platform_device.h> 28 27 #include <linux/pm_runtime.h> 29 28 #include <linux/reset.h>
-1
drivers/crypto/amlogic/amlogic-gxl-core.c
··· 18 18 #include <linux/kernel.h> 19 19 #include <linux/module.h> 20 20 #include <linux/of.h> 21 - #include <linux/of_device.h> 22 21 #include <linux/platform_device.h> 23 22 24 23 #include "amlogic-gxl.h"
-3
drivers/crypto/aspeed/aspeed-acry.c
··· 15 15 #include <linux/mfd/syscon.h> 16 16 #include <linux/module.h> 17 17 #include <linux/of.h> 18 - #include <linux/of_device.h> 19 - #include <linux/of_address.h> 20 - #include <linux/of_irq.h> 21 18 #include <linux/platform_device.h> 22 19 #include <linux/regmap.h> 23 20 #include <linux/slab.h>
+2 -4
drivers/crypto/atmel-aes.c
··· 28 28 #include <linux/irq.h> 29 29 #include <linux/scatterlist.h> 30 30 #include <linux/dma-mapping.h> 31 - #include <linux/of_device.h> 31 + #include <linux/mod_devicetable.h> 32 32 #include <linux/delay.h> 33 33 #include <linux/crypto.h> 34 34 #include <crypto/scatterwalk.h> ··· 2533 2533 } 2534 2534 } 2535 2535 2536 - #if defined(CONFIG_OF) 2537 2536 static const struct of_device_id atmel_aes_dt_ids[] = { 2538 2537 { .compatible = "atmel,at91sam9g46-aes" }, 2539 2538 { /* sentinel */ } 2540 2539 }; 2541 2540 MODULE_DEVICE_TABLE(of, atmel_aes_dt_ids); 2542 - #endif 2543 2541 2544 2542 static int atmel_aes_probe(struct platform_device *pdev) 2545 2543 { ··· 2676 2678 .remove = atmel_aes_remove, 2677 2679 .driver = { 2678 2680 .name = "atmel_aes", 2679 - .of_match_table = of_match_ptr(atmel_aes_dt_ids), 2681 + .of_match_table = atmel_aes_dt_ids, 2680 2682 }, 2681 2683 }; 2682 2684
+1 -1
drivers/crypto/atmel-ecc.c
··· 14 14 #include <linux/init.h> 15 15 #include <linux/kernel.h> 16 16 #include <linux/module.h> 17 - #include <linux/of_device.h> 17 + #include <linux/of.h> 18 18 #include <linux/scatterlist.h> 19 19 #include <linux/slab.h> 20 20 #include <linux/workqueue.h>
+2 -4
drivers/crypto/atmel-sha.c
··· 28 28 #include <linux/irq.h> 29 29 #include <linux/scatterlist.h> 30 30 #include <linux/dma-mapping.h> 31 - #include <linux/of_device.h> 31 + #include <linux/mod_devicetable.h> 32 32 #include <linux/delay.h> 33 33 #include <linux/crypto.h> 34 34 #include <crypto/scatterwalk.h> ··· 2571 2571 } 2572 2572 } 2573 2573 2574 - #if defined(CONFIG_OF) 2575 2574 static const struct of_device_id atmel_sha_dt_ids[] = { 2576 2575 { .compatible = "atmel,at91sam9g46-sha" }, 2577 2576 { /* sentinel */ } 2578 2577 }; 2579 2578 2580 2579 MODULE_DEVICE_TABLE(of, atmel_sha_dt_ids); 2581 - #endif 2582 2580 2583 2581 static int atmel_sha_probe(struct platform_device *pdev) 2584 2582 { ··· 2706 2708 .remove = atmel_sha_remove, 2707 2709 .driver = { 2708 2710 .name = "atmel_sha", 2709 - .of_match_table = of_match_ptr(atmel_sha_dt_ids), 2711 + .of_match_table = atmel_sha_dt_ids, 2710 2712 }, 2711 2713 }; 2712 2714
+2 -4
drivers/crypto/atmel-tdes.c
··· 28 28 #include <linux/irq.h> 29 29 #include <linux/scatterlist.h> 30 30 #include <linux/dma-mapping.h> 31 - #include <linux/of_device.h> 31 + #include <linux/mod_devicetable.h> 32 32 #include <linux/delay.h> 33 33 #include <linux/crypto.h> 34 34 #include <crypto/scatterwalk.h> ··· 1139 1139 } 1140 1140 } 1141 1141 1142 - #if defined(CONFIG_OF) 1143 1142 static const struct of_device_id atmel_tdes_dt_ids[] = { 1144 1143 { .compatible = "atmel,at91sam9g46-tdes" }, 1145 1144 { /* sentinel */ } 1146 1145 }; 1147 1146 MODULE_DEVICE_TABLE(of, atmel_tdes_dt_ids); 1148 - #endif 1149 1147 1150 1148 static int atmel_tdes_probe(struct platform_device *pdev) 1151 1149 { ··· 1272 1274 .remove = atmel_tdes_remove, 1273 1275 .driver = { 1274 1276 .name = "atmel_tdes", 1275 - .of_match_table = of_match_ptr(atmel_tdes_dt_ids), 1277 + .of_match_table = atmel_tdes_dt_ids, 1276 1278 }, 1277 1279 }; 1278 1280
+1 -2
drivers/crypto/bcm/cipher.c
··· 15 15 #include <linux/kthread.h> 16 16 #include <linux/rtnetlink.h> 17 17 #include <linux/sched.h> 18 - #include <linux/of_address.h> 19 - #include <linux/of_device.h> 18 + #include <linux/of.h> 20 19 #include <linux/io.h> 21 20 #include <linux/bitops.h> 22 21
+1
drivers/crypto/caam/ctrl.c
··· 9 9 #include <linux/device.h> 10 10 #include <linux/of_address.h> 11 11 #include <linux/of_irq.h> 12 + #include <linux/platform_device.h> 12 13 #include <linux/sys_soc.h> 13 14 #include <linux/fsl/mc.h> 14 15
+1
drivers/crypto/caam/jr.c
··· 9 9 10 10 #include <linux/of_irq.h> 11 11 #include <linux/of_address.h> 12 + #include <linux/platform_device.h> 12 13 13 14 #include "compat.h" 14 15 #include "ctrl.h"
+1
drivers/crypto/caam/qi.c
··· 13 13 #include <linux/kernel.h> 14 14 #include <linux/kthread.h> 15 15 #include <linux/netdevice.h> 16 + #include <linux/platform_device.h> 16 17 #include <linux/slab.h> 17 18 #include <linux/string.h> 18 19 #include <soc/fsl/qman.h>
-1
drivers/crypto/ccree/cc_driver.c
··· 14 14 #include <linux/of.h> 15 15 #include <linux/clk.h> 16 16 #include <linux/of_address.h> 17 - #include <linux/of_device.h> 18 17 #include <linux/pm_runtime.h> 19 18 20 19 #include "cc_driver.h"
+1 -1
drivers/crypto/exynos-rng.c
··· 15 15 #include <linux/io.h> 16 16 #include <linux/module.h> 17 17 #include <linux/mutex.h> 18 - #include <linux/of_device.h> 18 + #include <linux/of.h> 19 19 #include <linux/platform_device.h> 20 20 21 21 #include <crypto/internal/rng.h>
-1
drivers/crypto/gemini/sl3516-ce-core.c
··· 21 21 #include <linux/kernel.h> 22 22 #include <linux/module.h> 23 23 #include <linux/of.h> 24 - #include <linux/of_device.h> 25 24 #include <linux/platform_device.h> 26 25 #include <linux/pm_runtime.h> 27 26 #include <linux/reset.h>
+2 -2
drivers/crypto/img-hash.c
··· 13 13 #include <linux/io.h> 14 14 #include <linux/kernel.h> 15 15 #include <linux/module.h> 16 - #include <linux/of_device.h> 16 + #include <linux/mod_devicetable.h> 17 17 #include <linux/platform_device.h> 18 18 #include <linux/scatterlist.h> 19 19 ··· 1105 1105 .driver = { 1106 1106 .name = "img-hash-accelerator", 1107 1107 .pm = &img_hash_pm_ops, 1108 - .of_match_table = of_match_ptr(img_hash_match), 1108 + .of_match_table = img_hash_match, 1109 1109 } 1110 1110 }; 1111 1111 module_platform_driver(img_hash_driver);
+2 -1
drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
··· 16 16 #include <linux/err.h> 17 17 #include <linux/interrupt.h> 18 18 #include <linux/kernel.h> 19 + #include <linux/mod_devicetable.h> 19 20 #include <linux/module.h> 20 - #include <linux/of_device.h> 21 + #include <linux/platform_device.h> 21 22 #include <linux/string.h> 22 23 23 24 #include "ocs-hcu.h"
+1 -1
drivers/crypto/n2_core.c
··· 10 10 #include <linux/module.h> 11 11 #include <linux/of.h> 12 12 #include <linux/of_address.h> 13 - #include <linux/of_device.h> 13 + #include <linux/platform_device.h> 14 14 #include <linux/cpumask.h> 15 15 #include <linux/slab.h> 16 16 #include <linux/interrupt.h>
-1
drivers/crypto/omap-aes.c
··· 28 28 #include <linux/kernel.h> 29 29 #include <linux/module.h> 30 30 #include <linux/of.h> 31 - #include <linux/of_device.h> 32 31 #include <linux/of_address.h> 33 32 #include <linux/platform_device.h> 34 33 #include <linux/pm_runtime.h>
-2
drivers/crypto/omap-des.c
··· 29 29 #include <linux/kernel.h> 30 30 #include <linux/module.h> 31 31 #include <linux/of.h> 32 - #include <linux/of_device.h> 33 - #include <linux/of_address.h> 34 32 #include <linux/platform_device.h> 35 33 #include <linux/pm_runtime.h> 36 34 #include <linux/scatterlist.h>
-1
drivers/crypto/omap-sham.c
··· 30 30 #include <linux/kernel.h> 31 31 #include <linux/module.h> 32 32 #include <linux/of.h> 33 - #include <linux/of_device.h> 34 33 #include <linux/of_address.h> 35 34 #include <linux/of_irq.h> 36 35 #include <linux/platform_device.h>
-1
drivers/crypto/rockchip/rk3288_crypto.c
··· 23 23 #include <linux/module.h> 24 24 #include <linux/platform_device.h> 25 25 #include <linux/of.h> 26 - #include <linux/of_device.h> 27 26 #include <linux/reset.h> 28 27 #include <linux/spinlock.h> 29 28
-1
drivers/crypto/s5p-sss.c
··· 20 20 #include <linux/kernel.h> 21 21 #include <linux/module.h> 22 22 #include <linux/of.h> 23 - #include <linux/of_device.h> 24 23 #include <linux/platform_device.h> 25 24 #include <linux/scatterlist.h> 26 25
+2 -1
drivers/crypto/sa2ul.c
··· 15 15 #include <linux/dmapool.h> 16 16 #include <linux/kernel.h> 17 17 #include <linux/module.h> 18 - #include <linux/of_device.h> 18 + #include <linux/of.h> 19 + #include <linux/of_platform.h> 19 20 #include <linux/platform_device.h> 20 21 #include <linux/pm_runtime.h> 21 22
-1
drivers/crypto/sahara.c
··· 27 27 #include <linux/kthread.h> 28 28 #include <linux/module.h> 29 29 #include <linux/of.h> 30 - #include <linux/of_device.h> 31 30 #include <linux/platform_device.h> 32 31 #include <linux/spinlock.h> 33 32
+1 -1
drivers/crypto/starfive/jh7110-cryp.c
··· 15 15 #include <linux/interrupt.h> 16 16 #include <linux/iopoll.h> 17 17 #include <linux/kernel.h> 18 + #include <linux/mod_devicetable.h> 18 19 #include <linux/module.h> 19 - #include <linux/of_device.h> 20 20 #include <linux/platform_device.h> 21 21 #include <linux/pm_runtime.h> 22 22 #include <linux/reset.h>
-1
drivers/crypto/starfive/jh7110-hash.c
··· 17 17 #include <linux/iopoll.h> 18 18 #include <linux/kernel.h> 19 19 #include <linux/module.h> 20 - #include <linux/of_device.h> 21 20 #include <linux/platform_device.h> 22 21 #include <linux/pm_runtime.h> 23 22 #include <linux/reset.h>
+1 -1
drivers/crypto/stm32/stm32-cryp.c
··· 18 18 #include <linux/interrupt.h> 19 19 #include <linux/kernel.h> 20 20 #include <linux/module.h> 21 - #include <linux/of_device.h> 21 + #include <linux/of.h> 22 22 #include <linux/platform_device.h> 23 23 #include <linux/pm_runtime.h> 24 24 #include <linux/reset.h>
+1 -1
drivers/crypto/stm32/stm32-hash.c
··· 21 21 #include <linux/iopoll.h> 22 22 #include <linux/kernel.h> 23 23 #include <linux/module.h> 24 - #include <linux/of_device.h> 24 + #include <linux/of.h> 25 25 #include <linux/platform_device.h> 26 26 #include <linux/pm_runtime.h> 27 27 #include <linux/reset.h>
+2 -2
drivers/crypto/talitos.c
··· 19 19 #include <linux/interrupt.h> 20 20 #include <linux/crypto.h> 21 21 #include <linux/hw_random.h> 22 - #include <linux/of_address.h> 22 + #include <linux/of.h> 23 23 #include <linux/of_irq.h> 24 - #include <linux/of_platform.h> 24 + #include <linux/platform_device.h> 25 25 #include <linux/dma-mapping.h> 26 26 #include <linux/io.h> 27 27 #include <linux/spinlock.h>
+1 -1
drivers/crypto/xilinx/zynqmp-aes-gcm.c
··· 14 14 #include <linux/firmware/xlnx-zynqmp.h> 15 15 #include <linux/kernel.h> 16 16 #include <linux/module.h> 17 - #include <linux/of_device.h> 17 + #include <linux/mod_devicetable.h> 18 18 #include <linux/platform_device.h> 19 19 #include <linux/string.h> 20 20
-1
drivers/crypto/xilinx/zynqmp-sha.c
··· 15 15 #include <linux/io.h> 16 16 #include <linux/kernel.h> 17 17 #include <linux/module.h> 18 - #include <linux/of_device.h> 19 18 #include <linux/platform_device.h> 20 19 21 20 #define ZYNQMP_DMA_BIT_MASK 32U