From: Christophe JAILLET Date: Sat, 4 Jun 2022 06:15:21 +0000 (+0200) Subject: net: dsa: microchip: ksz8xxx: Replace kernel.h with the necessary inclusions X-Git-Tag: baikal/mips/sdk6.1~5155^2~397 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=2071605b0b092f52c7feadd83052043cee509f91;p=kernel.git net: dsa: microchip: ksz8xxx: Replace kernel.h with the necessary inclusions When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved. Replace kernel.h inclusion with the list of what is really being used. Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/41d99ef8629e1db03d4f2662f5556611e0b94652.1654323308.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/dsa/microchip/ksz8.h b/drivers/net/dsa/microchip/ksz8.h index 03da369675c68..cae76f5e7787c 100644 --- a/drivers/net/dsa/microchip/ksz8.h +++ b/drivers/net/dsa/microchip/ksz8.h @@ -7,7 +7,8 @@ #ifndef __KSZ8XXX_H #define __KSZ8XXX_H -#include + +#include enum ksz_regs { REG_IND_CTRL_0,