imx6_pcie->variant =
(enum imx6_pcie_variants)of_device_get_match_data(dev);
- if (IS_ENABLED(CONFIG_EP_MODE_IN_EP_RC_SYS)) {
- /* add attributes for device */
- ret = sysfs_create_group(&pdev->dev.kobj, &imx_pcie_attrgroup);
- if (ret)
- return -EINVAL;
- }
-
np = of_find_compatible_node(NULL, NULL, "fsl,imx-pcie-phy");
if (np != NULL) {
imx6_pcie->phy_base = of_iomap(np, 0);
LIST_HEAD(res);
struct resource_entry *win, *tmp;
+ /* add attributes for device */
+ ret = sysfs_create_group(&pdev->dev.kobj, &imx_pcie_attrgroup);
+ if (ret)
+ return -EINVAL;
+
ret = devm_of_pci_get_host_bridge_resources(dev, 0, 0xff, &res,
&pp->io_base);
if (ret)