summaryrefslogtreecommitdiff
path: root/drivers/clk/meson
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-08-22 19:08:21 +0300
committerStephen Boyd <sboyd@codeaurora.org>2016-08-24 10:55:13 +0300
commit718cc4b60ff279c0d6169d109e22cb107b23e312 (patch)
tree0c370acae2a52bb4d9d14fe5e13671671a711905 /drivers/clk/meson
parentf8c11f79912db52c8d90ce748094b4d411f36782 (diff)
downloadlinux-718cc4b60ff279c0d6169d109e22cb107b23e312.tar.xz
clk: meson: Fix invalid use of sizeof in gxbb_aoclkc_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 <weiyongjun1@huawei.com> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Fixes: f8c11f79912d ("clk: meson: Add GXBB AO Clock and Reset controller driver") Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/meson')
-rw-r--r--drivers/clk/meson/gxbb-aoclk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/meson/gxbb-aoclk.c b/drivers/clk/meson/gxbb-aoclk.c
index 61ef28a48631..b45c5fba7e35 100644
--- a/drivers/clk/meson/gxbb-aoclk.c
+++ b/drivers/clk/meson/gxbb-aoclk.c
@@ -142,7 +142,7 @@ static int gxbb_aoclkc_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct gxbb_aoclk_reset_controller *rstc;
- rstc = devm_kzalloc(dev, sizeof(rstc), GFP_KERNEL);
+ rstc = devm_kzalloc(dev, sizeof(*rstc), GFP_KERNEL);
if (!rstc)
return -ENOMEM;