[RFC PATCH 2/3] net: stmmac: dwmac-rk: clean up includes
Heiko Stuebner
heiko at sntech.de
Tue Sep 21 07:34:02 PDT 2021
Am Mittwoch, 15. September 2021, 19:02:54 CEST schrieb Michael Riesch:
> Sort includes alphabetically and remove unused includes.
>
> Signed-off-by: Michael Riesch <michael.riesch at wolfvision.net>
This is nice in its own right
Reviewed-by: Heiko Stuebner <heiko at sntech.de>
> ---
> drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 14 +++++---------
> 1 file changed, 5 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
> index 0db8be543ee1..96ec7d73a74a 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
> @@ -7,20 +7,16 @@
> * Chen-Zhi (Roger Chen) <roger.chen at rock-chips.com>
> */
>
> -#include <linux/stmmac.h>
> -#include <linux/bitops.h>
> #include <linux/clk.h>
> -#include <linux/phy.h>
> -#include <linux/of_net.h>
> -#include <linux/gpio.h>
> +#include <linux/mfd/syscon.h>
> #include <linux/module.h>
> -#include <linux/of_gpio.h>
> #include <linux/of_device.h>
> +#include <linux/of_net.h>
> +#include <linux/phy.h>
> #include <linux/platform_device.h>
> -#include <linux/regulator/consumer.h>
> -#include <linux/delay.h>
> -#include <linux/mfd/syscon.h>
> #include <linux/regmap.h>
> +#include <linux/regulator/consumer.h>
> +#include <linux/stmmac.h>
>
> #include "stmmac_platform.h"
>
>
More information about the Linux-rockchip
mailing list