diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-03-14 21:59:38 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-03-27 22:23:47 +0100 |
commit | c078d78aa96ceafab7379b6a50e92d9d8e2f97b5 (patch) | |
tree | 9928b7288622127d6ca905f604dc2a2752d176fa | |
parent | 87ff934afdc50ad171a4b5110bb62eb6ecb3a18f (diff) | |
download | kernel_goldelico_gta04-c078d78aa96ceafab7379b6a50e92d9d8e2f97b5.zip kernel_goldelico_gta04-c078d78aa96ceafab7379b6a50e92d9d8e2f97b5.tar.gz kernel_goldelico_gta04-c078d78aa96ceafab7379b6a50e92d9d8e2f97b5.tar.bz2 |
pinctrl: exynos5440: fix invalid use of sizeof in exynos5440_pinctrl_probe()
sizeof() when applied to a pointer typed expression gives the
size of the pointer, not that of the pointed data.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/pinctrl-exynos5440.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-exynos5440.c b/drivers/pinctrl/pinctrl-exynos5440.c index 169ea3e..eb8e502 100644 --- a/drivers/pinctrl/pinctrl-exynos5440.c +++ b/drivers/pinctrl/pinctrl-exynos5440.c @@ -854,7 +854,7 @@ static int exynos5440_pinctrl_probe(struct platform_device *pdev) return -ENODEV; } - priv = devm_kzalloc(dev, sizeof(priv), GFP_KERNEL); + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); if (!priv) { dev_err(dev, "could not allocate memory for private data\n"); return -ENOMEM; |