pci-ftpci100.c (669cbc708122fc7a02282058a09f096200cee090) | pci-ftpci100.c (b64aa11eb2ddb0600361178286d7b7ed5a069fd8) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Support for Faraday Technology FTPC100 PCI Controller 4 * 5 * Copyright (C) 2017 Linus Walleij <linus.walleij@linaro.org> 6 * 7 * Based on the out-of-tree OpenWRT patch for Cortina Gemini: 8 * Copyright (C) 2009 Janos Laube <janos.dev@gmail.com> --- 423 unchanged lines hidden (view full) --- 432 int ret; 433 u32 val; 434 435 host = devm_pci_alloc_host_bridge(dev, sizeof(*p)); 436 if (!host) 437 return -ENOMEM; 438 439 host->ops = &faraday_pci_ops; | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Support for Faraday Technology FTPC100 PCI Controller 4 * 5 * Copyright (C) 2017 Linus Walleij <linus.walleij@linaro.org> 6 * 7 * Based on the out-of-tree OpenWRT patch for Cortina Gemini: 8 * Copyright (C) 2009 Janos Laube <janos.dev@gmail.com> --- 423 unchanged lines hidden (view full) --- 432 int ret; 433 u32 val; 434 435 host = devm_pci_alloc_host_bridge(dev, sizeof(*p)); 436 if (!host) 437 return -ENOMEM; 438 439 host->ops = &faraday_pci_ops; |
440 host->map_irq = of_irq_parse_and_map_pci; 441 host->swizzle_irq = pci_common_swizzle; | |
442 p = pci_host_bridge_priv(host); 443 host->sysdata = p; 444 p->dev = dev; 445 446 /* Retrieve and enable optional clocks */ 447 clk = devm_clk_get(dev, "PCLK"); 448 if (IS_ERR(clk)) 449 return PTR_ERR(clk); --- 127 unchanged lines hidden --- | 440 p = pci_host_bridge_priv(host); 441 host->sysdata = p; 442 p->dev = dev; 443 444 /* Retrieve and enable optional clocks */ 445 clk = devm_clk_get(dev, "PCLK"); 446 if (IS_ERR(clk)) 447 return PTR_ERR(clk); --- 127 unchanged lines hidden --- |