Commit b02b06a7 authored by Rob Herring's avatar Rob Herring Committed by Lorenzo Pieralisi

PCI: dwc/intel-gw: Drop unnecessary checking of DT 'device_type' property

A driver doesn't need to check for DT 'device_type' property, so let's
remove the check.

Link: https://lore.kernel.org/r/20200821035420.380495-37-robh@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Dilip Kota <eswara.kota@linux.intel.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
parent 441e48fd
...@@ -268,12 +268,6 @@ static int intel_pcie_get_resources(struct platform_device *pdev) ...@@ -268,12 +268,6 @@ static int intel_pcie_get_resources(struct platform_device *pdev)
return ret; return ret;
} }
ret = device_property_match_string(dev, "device_type", "pci");
if (ret) {
dev_err(dev, "Failed to find pci device type: %d\n", ret);
return ret;
}
ret = device_property_read_u32(dev, "reset-assert-ms", ret = device_property_read_u32(dev, "reset-assert-ms",
&lpp->rst_intrvl); &lpp->rst_intrvl);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment