summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2017-05-16 20:41:45 +0800
committerKishon Vijay Abraham I <kishon@ti.com>2017-06-01 15:03:41 +0530
commit9605bc46433d54f89b12d443a3d9aabf8070824b (patch)
treebac70cbf2e39466bd6ee1d05675ecf2fac1dd24e /drivers/phy
parent53bf9590151e06e3f74212fea8da2eca2385db76 (diff)
downloadlinux-9605bc46433d54f89b12d443a3d9aabf8070824b.tar.gz
linux-9605bc46433d54f89b12d443a3d9aabf8070824b.tar.bz2
linux-9605bc46433d54f89b12d443a3d9aabf8070824b.zip
phy: qualcomm: phy-qcom-qmp: fix application of sizeof to pointer
drivers/phy/qualcomm/phy-qcom-qmp.c:847:37-43: ERROR: application of sizeof to pointer sizeof when applied to a pointer typed expression gives the size of the pointer Generated by: scripts/coccinelle/misc/noderef.cocci CC: Vivek Gautam <vivek.gautam@codeaurora.org> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/phy-qcom-qmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-qcom-qmp.c b/drivers/phy/phy-qcom-qmp.c
index a25c29d5fdf6..78ca62897784 100644
--- a/drivers/phy/phy-qcom-qmp.c
+++ b/drivers/phy/phy-qcom-qmp.c
@@ -844,7 +844,7 @@ static int qcom_qmp_phy_vreg_init(struct device *dev)
int num = qmp->cfg->num_vregs;
int i;
- qmp->vregs = devm_kcalloc(dev, num, sizeof(qmp->vregs), GFP_KERNEL);
+ qmp->vregs = devm_kcalloc(dev, num, sizeof(*qmp->vregs), GFP_KERNEL);
if (!qmp->vregs)
return -ENOMEM;