mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
Merge branch 'pci/host-altera' into next
* pci/host-altera: PCI: altera: Remove redundant error message in altera_pcie_parse_dt() PCI: altera: Use builtin_platform_driver() to simplify the code
This commit is contained in:
commit
a739d56dfb
@ -550,10 +550,8 @@ static int altera_pcie_parse_dt(struct altera_pcie *pcie)
|
||||
|
||||
cra = platform_get_resource_byname(pdev, IORESOURCE_MEM, "Cra");
|
||||
pcie->cra_base = devm_ioremap_resource(dev, cra);
|
||||
if (IS_ERR(pcie->cra_base)) {
|
||||
dev_err(dev, "failed to map cra memory\n");
|
||||
if (IS_ERR(pcie->cra_base))
|
||||
return PTR_ERR(pcie->cra_base);
|
||||
}
|
||||
|
||||
/* setup IRQ */
|
||||
pcie->irq = platform_get_irq(pdev, 0);
|
||||
@ -641,8 +639,4 @@ static struct platform_driver altera_pcie_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int altera_pcie_init(void)
|
||||
{
|
||||
return platform_driver_register(&altera_pcie_driver);
|
||||
}
|
||||
device_initcall(altera_pcie_init);
|
||||
builtin_platform_driver(altera_pcie_driver);
|
||||
|
Loading…
Reference in New Issue
Block a user