[PATCH 28/29] crypto: talitos - Clean up includes in core driver file

From: Paul Louvel

Date: Thu May 28 2026 - 05:23:16 EST


Now that the crypto implementations have been moved into their own
translation units, the talitos core driver file no longer needs the
includes that were only required by the hash, skcipher, aead, and hwrng
code. Remove them, and drop duplicates already provided by talitos.h.

Also sort the remaining includes alphabetically.
---
drivers/crypto/talitos/talitos.c | 23 +++--------------------
1 file changed, 3 insertions(+), 20 deletions(-)

diff --git a/drivers/crypto/talitos/talitos.c b/drivers/crypto/talitos/talitos.c
index a032907e900f..43939a9cd9ce 100644
--- a/drivers/crypto/talitos/talitos.c
+++ b/drivers/crypto/talitos/talitos.c
@@ -12,32 +12,15 @@
* All rights reserved.
*/

+#include <linux/crypto.h>
+#include <linux/io.h>
#include <linux/kernel.h>
-#include <linux/module.h>
#include <linux/mod_devicetable.h>
-#include <linux/crypto.h>
+#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_irq.h>
-#include <linux/platform_device.h>
-#include <linux/dma-mapping.h>
-#include <linux/io.h>
-#include <linux/spinlock.h>
-#include <linux/rtnetlink.h>
#include <linux/slab.h>

-#include <crypto/algapi.h>
-#include <crypto/aes.h>
-#include <crypto/internal/des.h>
-#include <crypto/sha1.h>
-#include <crypto/sha2.h>
-#include <crypto/md5.h>
-#include <crypto/internal/aead.h>
-#include <crypto/authenc.h>
-#include <crypto/internal/skcipher.h>
-#include <crypto/hash.h>
-#include <crypto/internal/hash.h>
-#include <crypto/scatterwalk.h>
-
#include "talitos.h"

/*

--
2.54.0