diff options
author | 2024-05-30 19:33:28 +0300 | |
---|---|---|
committer | 2024-06-03 13:06:15 +0100 | |
commit | cc711c523da7280c3bb01ec726596154f5af9798 (patch) | |
tree | 7c1bff128e1615d10b51b706033b864d175a844a /drivers/net/dsa | |
parent | net: dsa: ocelot: use devres in seville_probe() (diff) | |
download | wireguard-linux-cc711c523da7280c3bb01ec726596154f5af9798.tar.xz wireguard-linux-cc711c523da7280c3bb01ec726596154f5af9798.zip |
net: dsa: ocelot: delete open coded status = "disabled" parsing
Since commit 6fffbc7ae137 ("PCI: Honor firmware's device disabled
status"), PCI device drivers with OF bindings no longer need this check.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/ocelot/felix_vsc9959.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/dsa/ocelot/felix_vsc9959.c b/drivers/net/dsa/ocelot/felix_vsc9959.c index d4799a908abc..eabb55da0982 100644 --- a/drivers/net/dsa/ocelot/felix_vsc9959.c +++ b/drivers/net/dsa/ocelot/felix_vsc9959.c @@ -2668,11 +2668,6 @@ static int felix_pci_probe(struct pci_dev *pdev, struct felix *felix; int err; - if (pdev->dev.of_node && !of_device_is_available(pdev->dev.of_node)) { - dev_info(&pdev->dev, "device is disabled, skipping\n"); - return -ENODEV; - } - err = pci_enable_device(pdev); if (err) { dev_err(&pdev->dev, "device enable failed\n"); |