diff options
-rw-r--r-- | drivers/phy/phy-berlin-sata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-berlin-sata.c b/drivers/phy/phy-berlin-sata.c index 099eee8851e5..6f3e06d687de 100644 --- a/drivers/phy/phy-berlin-sata.c +++ b/drivers/phy/phy-berlin-sata.c | |||
@@ -218,7 +218,7 @@ static int phy_berlin_sata_probe(struct platform_device *pdev) | |||
218 | if (priv->nphys == 0) | 218 | if (priv->nphys == 0) |
219 | return -ENODEV; | 219 | return -ENODEV; |
220 | 220 | ||
221 | priv->phys = devm_kzalloc(dev, priv->nphys * sizeof(*priv->phys), | 221 | priv->phys = devm_kcalloc(dev, priv->nphys, sizeof(*priv->phys), |
222 | GFP_KERNEL); | 222 | GFP_KERNEL); |
223 | if (!priv->phys) | 223 | if (!priv->phys) |
224 | return -ENOMEM; | 224 | return -ENOMEM; |