提交 b02b06a7 编写于 作者: R Rob Herring 提交者: 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: NRob Herring <robh@kernel.org>
Signed-off-by: NLorenzo 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>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册