aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pinctrl/pinctrl-exynos5440.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-exynos5440.c b/drivers/pinctrl/pinctrl-exynos5440.c
index 169ea3e5f777..eb8e502e11ef 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)
854 return -ENODEV; 854 return -ENODEV;
855 } 855 }
856 856
857 priv = devm_kzalloc(dev, sizeof(priv), GFP_KERNEL); 857 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
858 if (!priv) { 858 if (!priv) {
859 dev_err(dev, "could not allocate memory for private data\n"); 859 dev_err(dev, "could not allocate memory for private data\n");
860 return -ENOMEM; 860 return -ENOMEM;