aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2013-02-14 07:23:47 -0500
committerSimon Horman <horms+renesas@verge.net.au>2013-02-15 20:58:50 -0500
commit8c43fcc7804fc4609ccd9fa021e21f5423db9d96 (patch)
treef60eb9aa77e185c743d86a9bdac8caa33b5b0b38
parentc3323806a67c0c656e27956b7340e37ba6c6968b (diff)
sh-pfc: sh_pfc_probe() sizeof() fix
Fix sizeof() usage in sh-pfc/core.c to allocate space for the full data structure instead of a pointer. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--drivers/pinctrl/sh-pfc/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/sh-pfc/core.c b/drivers/pinctrl/sh-pfc/core.c
index d323c24fffaf..970ddff2b0b6 100644
--- a/drivers/pinctrl/sh-pfc/core.c
+++ b/drivers/pinctrl/sh-pfc/core.c
@@ -495,7 +495,7 @@ static int sh_pfc_probe(struct platform_device *pdev)
495 if (info == NULL) 495 if (info == NULL)
496 return -ENODEV; 496 return -ENODEV;
497 497
498 pfc = devm_kzalloc(&pdev->dev, sizeof(pfc), GFP_KERNEL); 498 pfc = devm_kzalloc(&pdev->dev, sizeof(*pfc), GFP_KERNEL);
499 if (pfc == NULL) 499 if (pfc == NULL)
500 return -ENOMEM; 500 return -ENOMEM;
501 501