aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci/controller/pcie-mobiveil.c
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2018-08-29 13:34:40 -0500
committerLorenzo Pieralisi <[email protected]>2018-09-25 09:40:03 +0100
commitde17c5200237e93a2de1188e5cf885686ac8f79d (patch)
tree5c3d9c9cbf10fb5a3712095b8dd28b951481b3e2 /drivers/pci/controller/pcie-mobiveil.c
parent7876320f88802b22d4e2daf7eb027dd14175a0f8 (diff)
PCI: Remove unnecessary check of device_type == pci
PCI host drivers have already matched on compatible strings, so checking device_type is redundant. Also, device_type is considered deprecated for FDT though we've still been requiring it for PCI hosts as it is useful for finding PCI buses. Signed-off-by: Rob Herring <[email protected]> [[email protected]: reformatted the log] Signed-off-by: Lorenzo Pieralisi <[email protected]> Acked-by: Alan Douglas <[email protected]> Acked-by: Subrahmaya Lingappa <[email protected]> Acked-by: Michal Simek <[email protected]> Cc: Will Deacon <[email protected]> Cc: Lorenzo Pieralisi <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Alan Douglas <[email protected]> Cc: Subrahmanya Lingappa <[email protected]> Cc: Michal Simek <[email protected]> Cc: [email protected] Cc: [email protected]
Diffstat (limited to 'drivers/pci/controller/pcie-mobiveil.c')
-rw-r--r--drivers/pci/controller/pcie-mobiveil.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c
index a939e8d31735..77052a0712d0 100644
--- a/drivers/pci/controller/pcie-mobiveil.c
+++ b/drivers/pci/controller/pcie-mobiveil.c
@@ -301,13 +301,6 @@ static int mobiveil_pcie_parse_dt(struct mobiveil_pcie *pcie)
struct platform_device *pdev = pcie->pdev;
struct device_node *node = dev->of_node;
struct resource *res;
- const char *type;
-
- type = of_get_property(node, "device_type", NULL);
- if (!type || strcmp(type, "pci")) {
- dev_err(dev, "invalid \"device_type\" %s\n", type);
- return -EINVAL;
- }
/* map config resource */
res = platform_get_resource_byname(pdev, IORESOURCE_MEM,