summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorAxel Lin2015-03-05 02:40:41 +0100
committerKishon Vijay Abraham I2015-03-10 09:42:27 +0100
commitf8f55393b2860a2a5c97ff3b18c6ee02cef021c4 (patch)
tree09bc8d0545fa96742484502489fffce397438ba5 /drivers/phy
parentphy: xgene: Use PTR_ERR_OR_ZERO (diff)
downloadkernel-qcow2-linux-f8f55393b2860a2a5c97ff3b18c6ee02cef021c4.tar.gz
kernel-qcow2-linux-f8f55393b2860a2a5c97ff3b18c6ee02cef021c4.tar.xz
kernel-qcow2-linux-f8f55393b2860a2a5c97ff3b18c6ee02cef021c4.zip
phy: berlin-sata: Use devm_kcalloc at appropriate place
Prefer devm_kcalloc over devm_kzalloc with multiply. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/phy-berlin-sata.c2
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)
if (priv->nphys == 0)
return -ENODEV;
- priv->phys = devm_kzalloc(dev, priv->nphys * sizeof(*priv->phys),
+ priv->phys = devm_kcalloc(dev, priv->nphys, sizeof(*priv->phys),
GFP_KERNEL);
if (!priv->phys)
return -ENOMEM;