diff options
Diffstat (limited to 'drivers/pci/controller/pcie-cadence.c')
-rw-r--r-- | drivers/pci/controller/pcie-cadence.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/controller/pcie-cadence.c b/drivers/pci/controller/pcie-cadence.c index 86f1b002c846..975bcdd6b5c0 100644 --- a/drivers/pci/controller/pcie-cadence.c +++ b/drivers/pci/controller/pcie-cadence.c | |||
@@ -180,11 +180,11 @@ int cdns_pcie_init_phy(struct device *dev, struct cdns_pcie *pcie) | |||
180 | return 0; | 180 | return 0; |
181 | } | 181 | } |
182 | 182 | ||
183 | phy = devm_kzalloc(dev, sizeof(*phy) * phy_count, GFP_KERNEL); | 183 | phy = devm_kcalloc(dev, phy_count, sizeof(*phy), GFP_KERNEL); |
184 | if (!phy) | 184 | if (!phy) |
185 | return -ENOMEM; | 185 | return -ENOMEM; |
186 | 186 | ||
187 | link = devm_kzalloc(dev, sizeof(*link) * phy_count, GFP_KERNEL); | 187 | link = devm_kcalloc(dev, phy_count, sizeof(*link), GFP_KERNEL); |
188 | if (!link) | 188 | if (!link) |
189 | return -ENOMEM; | 189 | return -ENOMEM; |
190 | 190 | ||