diff options
Diffstat (limited to 'drivers/pci/controller/dwc/pci-keystone.c')
| -rw-r--r-- | drivers/pci/controller/dwc/pci-keystone.c | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c index 2b2632e513b5..eb00aa380722 100644 --- a/drivers/pci/controller/dwc/pci-keystone.c +++ b/drivers/pci/controller/dwc/pci-keystone.c @@ -960,7 +960,6 @@ static int ks_pcie_am654_raise_irq(struct dw_pcie_ep *ep, u8 func_no,  }  static const struct pci_epc_features ks_pcie_am654_epc_features = { -	.linkup_notifier = false,  	.msi_capable = true,  	.msix_capable = true,  	.bar[BAR_0] = { .type = BAR_RESERVED, }, @@ -1201,8 +1200,8 @@ static int ks_pcie_probe(struct platform_device *pdev)  	if (irq < 0)  		return irq; -	ret = request_irq(irq, ks_pcie_err_irq_handler, IRQF_SHARED, -			  "ks-pcie-error-irq", ks_pcie); +	ret = devm_request_irq(dev, irq, ks_pcie_err_irq_handler, IRQF_SHARED, +			       "ks-pcie-error-irq", ks_pcie);  	if (ret < 0) {  		dev_err(dev, "failed to request error IRQ %d\n",  			irq); @@ -1213,11 +1212,11 @@ static int ks_pcie_probe(struct platform_device *pdev)  	if (ret)  		num_lanes = 1; -	phy = devm_kzalloc(dev, sizeof(*phy) * num_lanes, GFP_KERNEL); +	phy = devm_kcalloc(dev, num_lanes, sizeof(*phy), GFP_KERNEL);  	if (!phy)  		return -ENOMEM; -	link = devm_kzalloc(dev, sizeof(*link) * num_lanes, GFP_KERNEL); +	link = devm_kcalloc(dev, num_lanes, sizeof(*link), GFP_KERNEL);  	if (!link)  		return -ENOMEM; | 
