]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ipq40xx: qca8k-ipq4019: add missing header platform_device.h
authorShiji Yang <yangshiji66@outlook.com>
Tue, 6 May 2025 11:30:52 +0000 (19:30 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 20 Jul 2025 13:33:02 +0000 (15:33 +0200)
The prototype of `devm_platform_ioremap_resource_byname()` was defined
in `linux/platform_device.h`.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18725
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ipq40xx/patches-6.6/706-net-dsa-qca8k-add-IPQ4019-built-in-switch-support.patch

index c0b926b7a19529afe048b358b15daee697cce983..b2f42b9fd14648ecb34876093ba1d3e8415e30b8 100644 (file)
@@ -78,7 +78,7 @@ Signed-off-by: Robert Marko <robert.marko@sartura.hr>
                if (dsa_is_cpu_port(priv->ds, i))
 --- /dev/null
 +++ b/drivers/net/dsa/qca/qca8k-ipq4019.c
-@@ -0,0 +1,948 @@
+@@ -0,0 +1,949 @@
 +// SPDX-License-Identifier: GPL-2.0
 +/*
 + * Copyright (C) 2009 Felix Fietkau <nbd@nbd.name>
@@ -97,6 +97,7 @@ Signed-off-by: Robert Marko <robert.marko@sartura.hr>
 +#include <linux/of_net.h>
 +#include <linux/of_mdio.h>
 +#include <linux/of_platform.h>
++#include <linux/platform_device.h>
 +#include <linux/mdio.h>
 +#include <linux/phylink.h>
 +