Browse Source

Merge branch 'clk-meson-gxbb-ao' into clk-next

* clk-meson-gxbb-ao:
  clk: meson: Fix invalid use of sizeof in gxbb_aoclkc_probe()
Stephen Boyd 9 years ago
parent
commit
49abf69fb9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/clk/meson/gxbb-aoclk.c

+ 1 - 1
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 device *dev = &pdev->dev;
 	struct gxbb_aoclk_reset_controller *rstc;
 	struct gxbb_aoclk_reset_controller *rstc;
 
 
-	rstc = devm_kzalloc(dev, sizeof(rstc), GFP_KERNEL);
+	rstc = devm_kzalloc(dev, sizeof(*rstc), GFP_KERNEL);
 	if (!rstc)
 	if (!rstc)
 		return -ENOMEM;
 		return -ENOMEM;