]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
treewide: remove of_platform.h include 21164/head
authorRosen Penev <rosenp@gmail.com>
Fri, 12 Dec 2025 04:35:36 +0000 (20:35 -0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 3 Feb 2026 23:50:06 +0000 (00:50 +0100)
This header is deprecated and typically platform_device.h should be
used.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21164
[Adapted the lantiq patches a bit]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
21 files changed:
target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c
target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c
target/linux/ath79/files/drivers/mfd/rb4xx-cpld.c
target/linux/ath79/files/drivers/mtd/nand/raw/rb91x_nand.c
target/linux/generic/pending-6.12/497-mtd-mtdconcat-add-dt-driver-for-concat-devices.patch
target/linux/ipq40xx/patches-6.12/706-net-dsa-qca8k-add-IPQ4019-built-in-switch-support.patch
target/linux/ipq40xx/patches-6.12/850-soc-add-qualcomm-syscon.patch
target/linux/ipq806x/patches-6.12/850-soc-add-qualcomm-syscon.patch
target/linux/lantiq/patches-6.12/008-MIPS-lantiq-backport-old-timer-code.patch
target/linux/lantiq/patches-6.12/028-NET-lantiq-various-etop-fixes.patch
target/linux/lantiq/patches-6.12/035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
target/linux/lantiq/patches-6.12/151-lantiq-ifxmips_pcie-use-of.patch
target/linux/lantiq/patches-6.12/701-NET-lantiq-etop-of-mido.patch
target/linux/mediatek/files-6.12/drivers/net/dsa/an8855.c
target/linux/mediatek/patches-6.12/701-net-phy-mediatek-add-driver-for-built-in-2.5G-ethern.patch
target/linux/ramips/patches-6.12/825-i2c-MIPS-adds-ralink-I2C-driver.patch
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto-serdes.c
target/linux/realtek/patches-6.12/723-net-mdio-Add-Realtek-Otto-auxiliary-controller.patch
target/linux/siflower/files-6.12/drivers/net/ethernet/siflower/sf_dpns.c
target/linux/siflower/files-6.12/drivers/net/ethernet/siflower/sfxgmac-dma.c
target/linux/siflower/files-6.12/drivers/net/ethernet/siflower/sfxpcs.c

index 05bd1fa6046c470b00bb0908ac96eef44bba11f9..6ed1e82a5a75a642f8658efe9a28415289ff9ce2 100644 (file)
@@ -12,7 +12,6 @@
 #include <linux/gpio/consumer.h>
 #include <linux/gpio/driver.h>
 #include <linux/platform_device.h>
-#include <linux/of_platform.h>
 
 #define GPIO_LATCH_DRIVER_NAME  "gpio-latch-mikrotik"
 #define GPIO_LATCH_LINES 9
index 3954cceccd02478d48059ac49e0519e1a629dd39..9e98d6a55ed21bf1efa0095277244e29c94b9296 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/gpio/consumer.h>
 #include <linux/gpio/driver.h>
 #include <linux/platform_device.h>
-#include <linux/of_platform.h>
 #include <linux/delay.h>
 
 #define GPIO_RB91X_KEY_DRIVER_NAME  "gpio-rb91x-key"
index b99a15bb46b132f6309f46a536fb3749ccc7d908..3ec8e519de2c0fdf26ff64384cf1afa4bb64159f 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/mfd/core.h>
 #include <linux/spi/spi.h>
 #include <linux/module.h>
-#include <linux/of_platform.h>
+#include <linux/platform_device.h>
 
 #include <mfd/rb4xx-cpld.h>
 
index 7ab87bbcd786c5ebfb020486489aa456d765cac5..d19c4a45cb5ddd3354a69fe0364e6d18b35a4c19 100644 (file)
@@ -20,7 +20,6 @@
 #include <linux/platform_device.h>
 #include <linux/gpio/consumer.h>
 #include <linux/version.h>
-#include <linux/of_platform.h>
 
 #include <asm/mach-ath79/ar71xx_regs.h>
 
index 3d5f5768bc1605bfdfc633839fe474a8320657c0..cda5e106eb4c658b54efc4d7e03fdf13a07f1f34 100644 (file)
@@ -101,7 +101,7 @@ Signed-off-by: Bernhard Frauendienst <kernel@nospam.obeliks.de>
 +#include <linux/mtd/mtd.h>
 +#include <linux/mtd/partitions.h>
 +#include <linux/of.h>
-+#include <linux/of_platform.h>
++#include <linux/mod_devicetable.h>
 +#include <linux/slab.h>
 +
 +/*
index c1e46cb4ad654dea571384f9be164197ec9597b0..bbd30e433cec6e223d60d4ad4809621ecba5e4cb 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,949 @@
+@@ -0,0 +1,948 @@
 +// SPDX-License-Identifier: GPL-2.0
 +/*
 + * Copyright (C) 2009 Felix Fietkau <nbd@nbd.name>
@@ -96,7 +96,6 @@ Signed-off-by: Robert Marko <robert.marko@sartura.hr>
 +#include <net/dsa.h>
 +#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>
index 579a8cccfb7e475b3fefb1a04b544ec49c329314..00221f7e0e8189925fedb7030e2116f4fc8e589f 100644 (file)
@@ -23,7 +23,7 @@ Subject: SoC: add qualcomm syscon
 +obj-$(CONFIG_QCOM_TCSR)               += qcom_tcsr.o
 --- /dev/null
 +++ b/drivers/soc/qcom/qcom_tcsr.c
-@@ -0,0 +1,95 @@
+@@ -0,0 +1,94 @@
 +/*
 + * Copyright (c) 2014, The Linux foundation. All rights reserved.
 + *
@@ -42,7 +42,6 @@ Subject: SoC: add qualcomm syscon
 +#include <linux/io.h>
 +#include <linux/module.h>
 +#include <linux/of.h>
-+#include <linux/of_platform.h>
 +#include <linux/platform_device.h>
 +
 +#define TCSR_USB_PORT_SEL     0xb0
index 8b374b8c1517f6437b0e3b976f1410dc4ae19e18..7f4f6b324c92e6f023bd013b5b2f78bb7bf52ca7 100644 (file)
@@ -28,7 +28,7 @@ Subject: SoC: add qualcomm syscon
        depends on ARCH_QCOM || COMPILE_TEST
 --- /dev/null
 +++ b/drivers/soc/qcom/qcom_tcsr.c
-@@ -0,0 +1,61 @@
+@@ -0,0 +1,60 @@
 +/*
 + * Copyright (c) 2014, The Linux foundation. All rights reserved.
 + *
@@ -47,7 +47,6 @@ Subject: SoC: add qualcomm syscon
 +#include <linux/io.h>
 +#include <linux/module.h>
 +#include <linux/of.h>
-+#include <linux/of_platform.h>
 +#include <linux/platform_device.h>
 +
 +#define TCSR_USB_PORT_SEL     0xb0
index 08977b111b59ae45820273508cfbddf8f9dc735a..a976df93d7f27bec5f7a69943df07b7a9adbbc1f 100644 (file)
@@ -186,11 +186,12 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  obj-y += vmmc.o
 --- /dev/null
 +++ b/arch/mips/lantiq/xway/timer.c
-@@ -0,0 +1,889 @@
+@@ -0,0 +1,890 @@
 +#ifndef CONFIG_SOC_AMAZON_SE
 +
 +#include <linux/kernel.h>
 +#include <linux/module.h>
++#include <linux/mod_devicetable.h>
 +#include <linux/version.h>
 +#include <linux/types.h>
 +#include <linux/fs.h>
@@ -204,7 +205,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +#include <linux/sched.h>
 +#include <linux/sched/signal.h>
 +
-+#include <linux/of_platform.h>
++#include <linux/platform_device.h>
 +
 +#include <asm/irq.h>
 +#include <asm/div64.h>
index fff60cefafed41e37d7fb8baa7af84f16dccecde..90982b591049c9e4938b31abcbf16014890206dd 100644 (file)
@@ -19,7 +19,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
   */
  
  #include <linux/kernel.h>
-@@ -20,12 +20,17 @@
+@@ -20,12 +20,16 @@
  #include <linux/mm.h>
  #include <linux/platform_device.h>
  #include <linux/ethtool.h>
@@ -33,11 +33,10 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +#include <linux/clk.h>
 +#include <linux/of_net.h>
 +#include <linux/of_irq.h>
-+#include <linux/of_platform.h>
  
  #include <asm/checksum.h>
  
-@@ -33,7 +38,7 @@
+@@ -33,7 +37,7 @@
  #include <xway_dma.h>
  #include <lantiq_platform.h>
  
@@ -46,7 +45,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  #define MDIO_REQUEST          0x80000000
  #define MDIO_READ             0x40000000
  #define MDIO_ADDR_MASK                0x1f
-@@ -42,44 +47,91 @@
+@@ -42,44 +46,91 @@
  #define MDIO_REG_OFFSET               0x10
  #define MDIO_VAL_MASK         0xffff
  
@@ -153,7 +152,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        struct net_device *netdev;
        struct napi_struct napi;
        struct ltq_dma_channel dma;
-@@ -89,25 +141,39 @@ struct ltq_etop_chan {
+@@ -89,25 +140,39 @@ struct ltq_etop_chan {
  struct ltq_etop_priv {
        struct net_device *netdev;
        struct platform_device *pdev;
@@ -196,7 +195,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        if (!ch->skb[ch->dma.desc])
                return -ENOMEM;
        ch->dma.desc_base[ch->dma.desc].addr =
-@@ -142,8 +208,11 @@ ltq_etop_hw_receive(struct ltq_etop_chan
+@@ -142,8 +207,11 @@ ltq_etop_hw_receive(struct ltq_etop_chan
        spin_unlock_irqrestore(&priv->lock, flags);
  
        skb_put(skb, len);
@@ -208,7 +207,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  }
  
  static int
-@@ -151,7 +220,9 @@ ltq_etop_poll_rx(struct napi_struct *nap
+@@ -151,7 +219,9 @@ ltq_etop_poll_rx(struct napi_struct *nap
  {
        struct ltq_etop_chan *ch = container_of(napi,
                                struct ltq_etop_chan, napi);
@@ -218,7 +217,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  
        while (work_done < budget) {
                struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc];
-@@ -163,7 +234,9 @@ ltq_etop_poll_rx(struct napi_struct *nap
+@@ -163,7 +233,9 @@ ltq_etop_poll_rx(struct napi_struct *nap
        }
        if (work_done < budget) {
                napi_complete_done(&ch->napi, work_done);
@@ -228,7 +227,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        }
        return work_done;
  }
-@@ -175,12 +248,14 @@ ltq_etop_poll_tx(struct napi_struct *nap
+@@ -175,12 +247,14 @@ ltq_etop_poll_tx(struct napi_struct *nap
                container_of(napi, struct ltq_etop_chan, napi);
        struct ltq_etop_priv *priv = netdev_priv(ch->netdev);
        struct netdev_queue *txq =
@@ -244,7 +243,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
                dev_kfree_skb_any(ch->skb[ch->tx_free]);
                ch->skb[ch->tx_free] = NULL;
                memset(&ch->dma.desc_base[ch->tx_free], 0,
-@@ -193,7 +268,9 @@ ltq_etop_poll_tx(struct napi_struct *nap
+@@ -193,7 +267,9 @@ ltq_etop_poll_tx(struct napi_struct *nap
        if (netif_tx_queue_stopped(txq))
                netif_tx_start_queue(txq);
        napi_complete(&ch->napi);
@@ -254,7 +253,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        return 1;
  }
  
-@@ -201,9 +278,11 @@ static irqreturn_t
+@@ -201,9 +277,11 @@ static irqreturn_t
  ltq_etop_dma_irq(int irq, void *_priv)
  {
        struct ltq_etop_priv *priv = _priv;
@@ -268,7 +267,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        return IRQ_HANDLED;
  }
  
-@@ -215,7 +294,7 @@ ltq_etop_free_channel(struct net_device
+@@ -215,7 +293,7 @@ ltq_etop_free_channel(struct net_device
        ltq_dma_free(&ch->dma);
        if (ch->dma.irq)
                free_irq(ch->dma.irq, priv);
@@ -277,7 +276,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
                struct ltq_dma_channel *dma = &ch->dma;
  
                for (dma->desc = 0; dma->desc < LTQ_DESC_NUM; dma->desc++)
-@@ -227,80 +306,137 @@ static void
+@@ -227,80 +305,137 @@ static void
  ltq_etop_hw_exit(struct net_device *dev)
  {
        struct ltq_etop_priv *priv = netdev_priv(dev);
@@ -464,7 +463,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  }
  
  static void
-@@ -319,6 +455,39 @@ static const struct ethtool_ops ltq_etop
+@@ -319,6 +454,39 @@ static const struct ethtool_ops ltq_etop
  };
  
  static int
@@ -504,7 +503,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  ltq_etop_mdio_wr(struct mii_bus *bus, int phy_addr, int phy_reg, u16 phy_data)
  {
        u32 val = MDIO_REQUEST |
-@@ -326,9 +495,9 @@ ltq_etop_mdio_wr(struct mii_bus *bus, in
+@@ -326,9 +494,9 @@ ltq_etop_mdio_wr(struct mii_bus *bus, in
                ((phy_reg & MDIO_REG_MASK) << MDIO_REG_OFFSET) |
                phy_data;
  
@@ -516,7 +515,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        return 0;
  }
  
-@@ -339,12 +508,12 @@ ltq_etop_mdio_rd(struct mii_bus *bus, in
+@@ -339,12 +507,12 @@ ltq_etop_mdio_rd(struct mii_bus *bus, in
                ((phy_addr & MDIO_ADDR_MASK) << MDIO_ADDR_OFFSET) |
                ((phy_reg & MDIO_REG_MASK) << MDIO_REG_OFFSET);
  
@@ -533,7 +532,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        return val;
  }
  
-@@ -360,7 +529,10 @@ ltq_etop_mdio_probe(struct net_device *d
+@@ -360,7 +528,10 @@ ltq_etop_mdio_probe(struct net_device *d
        struct ltq_etop_priv *priv = netdev_priv(dev);
        struct phy_device *phydev;
  
@@ -545,7 +544,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  
        if (!phydev) {
                netdev_err(dev, "no PHY found\n");
-@@ -368,14 +540,17 @@ ltq_etop_mdio_probe(struct net_device *d
+@@ -368,14 +539,17 @@ ltq_etop_mdio_probe(struct net_device *d
        }
  
        phydev = phy_connect(dev, phydev_name(phydev),
@@ -565,7 +564,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  
        phy_attached_info(phydev);
  
-@@ -396,8 +571,13 @@ ltq_etop_mdio_init(struct net_device *de
+@@ -396,8 +570,13 @@ ltq_etop_mdio_init(struct net_device *de
        }
  
        priv->mii_bus->priv = dev;
@@ -581,7 +580,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        priv->mii_bus->name = "ltq_mii";
        snprintf(priv->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
                 priv->pdev->name, priv->pdev->id);
-@@ -434,18 +614,21 @@ static int
+@@ -434,18 +613,21 @@ static int
  ltq_etop_open(struct net_device *dev)
  {
        struct ltq_etop_priv *priv = netdev_priv(dev);
@@ -613,7 +612,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        netif_tx_start_all_queues(dev);
        return 0;
  }
-@@ -454,18 +637,19 @@ static int
+@@ -454,18 +636,19 @@ static int
  ltq_etop_stop(struct net_device *dev)
  {
        struct ltq_etop_priv *priv = netdev_priv(dev);
@@ -643,7 +642,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        return 0;
  }
  
-@@ -475,17 +659,21 @@ ltq_etop_tx(struct sk_buff *skb, struct
+@@ -475,17 +658,21 @@ ltq_etop_tx(struct sk_buff *skb, struct
        int queue = skb_get_queue_mapping(skb);
        struct netdev_queue *txq = netdev_get_tx_queue(dev, queue);
        struct ltq_etop_priv *priv = netdev_priv(dev);
@@ -670,7 +669,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
                netdev_err(dev, "tx ring full\n");
                netif_tx_stop_queue(txq);
                return NETDEV_TX_BUSY;
-@@ -493,7 +681,7 @@ ltq_etop_tx(struct sk_buff *skb, struct
+@@ -493,7 +680,7 @@ ltq_etop_tx(struct sk_buff *skb, struct
  
        /* dma needs to start on a burst length value aligned address */
        byte_offset = CPHYSADDR(skb->data) % (priv->tx_burst_len * 4);
@@ -679,7 +678,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  
        netif_trans_update(dev);
  
-@@ -504,11 +692,11 @@ ltq_etop_tx(struct sk_buff *skb, struct
+@@ -504,11 +691,11 @@ ltq_etop_tx(struct sk_buff *skb, struct
        wmb();
        desc->ctl = LTQ_DMA_OWN | LTQ_DMA_SOP | LTQ_DMA_EOP |
                LTQ_DMA_TX_OFFSET(byte_offset) | (len & LTQ_DMA_SIZE_MASK);
@@ -694,7 +693,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
                netif_tx_stop_queue(txq);
  
        return NETDEV_TX_OK;
-@@ -519,11 +707,14 @@ ltq_etop_change_mtu(struct net_device *d
+@@ -519,11 +706,14 @@ ltq_etop_change_mtu(struct net_device *d
  {
        struct ltq_etop_priv *priv = netdev_priv(dev);
        unsigned long flags;
@@ -710,7 +709,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        spin_unlock_irqrestore(&priv->lock, flags);
  
        return 0;
-@@ -576,6 +767,9 @@ ltq_etop_init(struct net_device *dev)
+@@ -576,6 +766,9 @@ ltq_etop_init(struct net_device *dev)
        if (err)
                goto err_hw;
        ltq_etop_change_mtu(dev, 1500);
@@ -720,7 +719,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  
        memcpy(&mac, &priv->pldata->mac, sizeof(struct sockaddr));
        if (!is_valid_ether_addr(mac.sa_data)) {
-@@ -593,9 +787,10 @@ ltq_etop_init(struct net_device *dev)
+@@ -593,9 +786,10 @@ ltq_etop_init(struct net_device *dev)
                dev->addr_assign_type = NET_ADDR_RANDOM;
  
        ltq_etop_set_multicast_list(dev);
@@ -734,7 +733,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        return 0;
  
  err_netdev:
-@@ -615,6 +810,9 @@ ltq_etop_tx_timeout(struct net_device *d
+@@ -615,6 +809,9 @@ ltq_etop_tx_timeout(struct net_device *d
        err = ltq_etop_hw_init(dev);
        if (err)
                goto err_hw;
@@ -744,7 +743,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        netif_trans_update(dev);
        netif_wake_queue(dev);
        return;
-@@ -638,14 +836,18 @@ static const struct net_device_ops ltq_e
+@@ -638,14 +835,18 @@ static const struct net_device_ops ltq_e
        .ndo_tx_timeout = ltq_etop_tx_timeout,
  };
  
@@ -767,7 +766,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        if (!res) {
-@@ -671,18 +873,54 @@ ltq_etop_probe(struct platform_device *p
+@@ -671,18 +872,54 @@ ltq_etop_probe(struct platform_device *p
                goto err_out;
        }
  
@@ -828,7 +827,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        spin_lock_init(&priv->lock);
        SET_NETDEV_DEV(dev, &pdev->dev);
  
-@@ -698,15 +936,10 @@ ltq_etop_probe(struct platform_device *p
+@@ -698,15 +935,10 @@ ltq_etop_probe(struct platform_device *p
                goto err_free;
        }
  
@@ -848,7 +847,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  
        err = register_netdev(dev);
        if (err)
-@@ -733,31 +966,22 @@ static void ltq_etop_remove(struct platf
+@@ -733,31 +965,22 @@ static void ltq_etop_remove(struct platf
        }
  }
  
index b36b40779f1cbeda78fb42633157d334abe4bf98..10f2d4086d3f49d1b53ee8d7a80c99a1dad6ad74 100644 (file)
@@ -224,7 +224,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  
 --- a/drivers/net/ethernet/lantiq_etop.c
 +++ b/drivers/net/ethernet/lantiq_etop.c
-@@ -771,7 +771,11 @@ ltq_etop_init(struct net_device *dev)
+@@ -770,7 +770,11 @@ ltq_etop_init(struct net_device *dev)
        if (err)
                goto err_hw;
  
index 92e0f4830ef2ef715da55107256792655407f99c..b7bbdf7783f5f98f419d556faee5890bb3c816f4 100644 (file)
@@ -23,7 +23,7 @@ Signed-off-by: Eddi De Pieri <eddi@depieri.net>
  obj-$(CONFIG_SOC_TX4938)      += pci-tx4938.o
 --- a/arch/mips/pci/ifxmips_pcie.c
 +++ b/arch/mips/pci/ifxmips_pcie.c
-@@ -16,8 +16,16 @@
+@@ -16,8 +16,15 @@
  #include <asm/paccess.h>
  #include <linux/pci.h>
  #include <linux/pci_regs.h>
@@ -34,13 +34,12 @@ Signed-off-by: Eddi De Pieri <eddi@depieri.net>
  #include <linux/module.h>
  
 +#include <linux/of_gpio.h>
-+#include <linux/of_platform.h>
 +#include <linux/platform_device.h>
 +
  #include "ifxmips_pcie.h"
  #include "ifxmips_pcie_reg.h"
  
-@@ -25,11 +33,6 @@
+@@ -25,11 +32,6 @@
  #define IFX_PCIE_ERROR_INT
  #define IFX_PCIE_IO_32BIT
  
@@ -52,7 +51,7 @@ Signed-off-by: Eddi De Pieri <eddi@depieri.net>
  #define MS(_v, _f)  (((_v) & (_f)) >> _f##_S)
  #define SM(_v, _f)  (((_v) << _f##_S) & (_f))
  #define IFX_REG_SET_BIT(_f, _r) \
-@@ -40,30 +43,30 @@
+@@ -40,30 +42,30 @@
  static DEFINE_SPINLOCK(ifx_pcie_lock);
  
  u32 g_pcie_debug_flag = PCIE_MSG_ANY & (~PCIE_MSG_CFG);
@@ -88,7 +87,7 @@ Signed-off-by: Eddi De Pieri <eddi@depieri.net>
              },
          },
      },
-@@ -82,6 +85,22 @@ void ifx_pcie_debug(const char *fmt, ...
+@@ -82,6 +84,22 @@ void ifx_pcie_debug(const char *fmt, ...
        printk("%s", buf);
  }
  
@@ -111,7 +110,7 @@ Signed-off-by: Eddi De Pieri <eddi@depieri.net>
  
  static inline int pcie_ltssm_enable(int pcie_port)
  {
-@@ -857,7 +876,8 @@ pcie_rc_core_int_init(int pcie_port)
+@@ -857,7 +875,8 @@ pcie_rc_core_int_init(int pcie_port)
        ret = request_irq(pcie_irqs[pcie_port].ir_irq.irq, pcie_rc_core_isr, 0,
                pcie_irqs[pcie_port].ir_irq.name, &ifx_pcie_controller[pcie_port]);
        if (ret)
@@ -121,7 +120,7 @@ Signed-off-by: Eddi De Pieri <eddi@depieri.net>
  
        return ret;
  }
-@@ -988,10 +1008,26 @@ int  ifx_pcie_bios_plat_dev_init(struct
+@@ -988,10 +1007,26 @@ int  ifx_pcie_bios_plat_dev_init(struct
  static int
  pcie_rc_initialize(int pcie_port)
  {
@@ -150,7 +149,7 @@ Signed-off-by: Eddi De Pieri <eddi@depieri.net>
  
        pcie_ep_gpio_rst_init(pcie_port);
  
-@@ -1000,26 +1036,21 @@ pcie_rc_initialize(int pcie_port)
+@@ -1000,26 +1035,21 @@ pcie_rc_initialize(int pcie_port)
        * reset PCIe PHY will solve this issue 
        */
        for (i = 0; i < IFX_PCIE_PHY_LOOP_CNT; i++) {
@@ -187,7 +186,7 @@ Signed-off-by: Eddi De Pieri <eddi@depieri.net>
  
                /* Enable PCIe PHY and Clock */
                pcie_core_pmu_setup(pcie_port);
-@@ -1035,6 +1066,10 @@ pcie_rc_initialize(int pcie_port)
+@@ -1035,6 +1065,10 @@ pcie_rc_initialize(int pcie_port)
                /* Once link is up, break out */
                if (pcie_app_loigc_setup(pcie_port) == 0)
                        break;
@@ -198,7 +197,7 @@ Signed-off-by: Eddi De Pieri <eddi@depieri.net>
        }
        if (i >= IFX_PCIE_PHY_LOOP_CNT) {
                printk(KERN_ERR "%s link up failed!!!!!\n", __func__);
-@@ -1045,17 +1080,73 @@ pcie_rc_initialize(int pcie_port)
+@@ -1045,17 +1079,73 @@ pcie_rc_initialize(int pcie_port)
        return 0;
  }
  
@@ -274,7 +273,7 @@ Signed-off-by: Eddi De Pieri <eddi@depieri.net>
      for (pcie_port = startup_port; pcie_port < IFX_PCIE_CORE_NR; pcie_port++){
        if (pcie_rc_initialize(pcie_port) == 0) {
            IFX_PCIE_PRINT(PCIE_MSG_INIT, "%s: ifx_pcie_cfg_base 0x%p\n", 
-@@ -1066,7 +1157,19 @@ static int __init ifx_pcie_bios_init(voi
+@@ -1066,7 +1156,19 @@ static int __init ifx_pcie_bios_init(voi
                  IFX_PCIE_PRINT(PCIE_MSG_ERR, "%s io space ioremap failed\n", __func__);
                  return -ENOMEM;
              }
@@ -294,7 +293,7 @@ Signed-off-by: Eddi De Pieri <eddi@depieri.net>
  
              register_pci_controller(&ifx_pcie_controller[pcie_port].pcic);
              /* XXX, clear error status */
-@@ -1083,6 +1186,29 @@ static int __init ifx_pcie_bios_init(voi
+@@ -1083,6 +1185,29 @@ static int __init ifx_pcie_bios_init(voi
  
      return 0;
  }
index d80cdb0872323bda8210375714fbe50c845e63b9..d4c7b4ff23ff0a3effa49d981c9f91192cdac160 100644 (file)
@@ -10,15 +10,15 @@ Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
 
 --- a/drivers/net/ethernet/lantiq_etop.c
 +++ b/drivers/net/ethernet/lantiq_etop.c
-@@ -31,6 +31,7 @@
+@@ -30,6 +30,7 @@
+ #include <linux/clk.h>
  #include <linux/of_net.h>
  #include <linux/of_irq.h>
- #include <linux/of_platform.h>
 +#include <linux/of_mdio.h>
  
  #include <asm/checksum.h>
  
-@@ -561,7 +562,8 @@ static int
+@@ -560,7 +561,8 @@ static int
  ltq_etop_mdio_init(struct net_device *dev)
  {
        struct ltq_etop_priv *priv = netdev_priv(dev);
@@ -28,7 +28,7 @@ Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
  
        priv->mii_bus = mdiobus_alloc();
        if (!priv->mii_bus) {
-@@ -581,7 +583,15 @@ ltq_etop_mdio_init(struct net_device *de
+@@ -580,7 +582,15 @@ ltq_etop_mdio_init(struct net_device *de
        priv->mii_bus->name = "ltq_mii";
        snprintf(priv->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
                 priv->pdev->name, priv->pdev->id);
index e6666d2011c9b6f3da00c4bedd1afac1d6e9d240..47a7d9b625b1f546edf11ce468215f45afaeb2c4 100644 (file)
@@ -12,7 +12,6 @@
 #include <linux/iopoll.h>
 #include <linux/netdevice.h>
 #include <linux/of_net.h>
-#include <linux/of_platform.h>
 #include <linux/phylink.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
index 19b347f57ccc9ac69e8c10740e2f92b5076ef8c1..55c13721578eb3a8eac866ee7fca612e8f8b8997 100644 (file)
@@ -61,7 +61,7 @@ Signed-off-by: Sky Huang <skylake.huang@mediatek.com>
 +#include <linux/module.h>
 +#include <linux/nvmem-consumer.h>
 +#include <linux/of_address.h>
-+#include <linux/of_platform.h>
++#include <linux/platform_device.h>
 +#include <linux/pinctrl/consumer.h>
 +#include <linux/phy.h>
 +#include <linux/pm_domain.h>
index c0df68195611b866ec6f12053dd6a4a3e82dd9a4..5bed8ea448eace804f8b171af85ec034c01d9579 100644 (file)
@@ -69,7 +69,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  obj-$(CONFIG_I2C_QUP)         += i2c-qup.o
 --- /dev/null
 +++ b/drivers/i2c/busses/i2c-ralink.c
-@@ -0,0 +1,397 @@
+@@ -0,0 +1,396 @@
 +/*
 + * drivers/i2c/busses/i2c-ralink.c
 + *
@@ -99,7 +99,6 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +#include <linux/init.h>
 +#include <linux/errno.h>
 +#include <linux/platform_device.h>
-+#include <linux/of_platform.h>
 +#include <linux/i2c.h>
 +#include <linux/io.h>
 +#include <linux/err.h>
index 9ae62bfc4fa6caadea9ebf3ea7f21fec784d1e2a..c0d444dc2cd5cb1ff521484107e64cdd1b2f0c65 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_mdio.h>
-#include <linux/of_platform.h>
+#include <linux/mod_devicetable.h>
 #include <linux/phy.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
index ad11b9075292f3e091f88302826faf8a0a96857b..ac6cb1bc20961d0fd6784447e9df25234815cd93 100644 (file)
@@ -57,7 +57,7 @@ Signed-off-by: Sander Vanheule <sander@svanheule.net>
 +#include <linux/module.h>
 +#include <linux/of.h>
 +#include <linux/of_mdio.h>
-+#include <linux/of_platform.h>
++#include <linux/mod_devicetable.h>
 +#include <linux/phy.h>
 +#include <linux/platform_device.h>
 +#include <linux/regmap.h>
index 67c949f56a61e14836d4978e5432c9958f575ad1..db178700b4272c92c4eea32fa54d684199ef64e0 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_net.h>
-#include <linux/of_platform.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 #include <linux/reset.h>
 
index 8143bd078d1d4d758f950158f2ac2ce8f67b3033..923f77732f152288f9acafdb153d5803366abda8 100644 (file)
@@ -3,7 +3,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/if_ether.h>
 #include <linux/platform_device.h>
-#include <linux/of_platform.h>
+#include <linux/mod_devicetable.h>
 #include <linux/seq_file.h>
 #include <linux/tcp.h>
 #include <net/page_pool/helpers.h>
index ae20940f5acac86705d87612a0e9c0d89ece1f38..ace17aba36eedffe027aa223c23536eac99eb49c 100644 (file)
@@ -3,11 +3,11 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>
-#include <linux/interrupt.h> 
+#include <linux/interrupt.h>
 #include <linux/clk.h>
 #include <linux/mfd/syscon.h>
 #include <linux/phylink.h>
-#include <linux/of_platform.h>
+#include <linux/mod_devicetable.h>
 #include <linux/seq_file.h>
 #include <linux/proc_fs.h>
 #include <linux/regmap.h>