Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 079ed368 authored by Russell King's avatar Russell King
Browse files

clk: s2mps11: use clkdev_create()



clkdev_create() is a shorter way to write clkdev_alloc() followed by
clkdev_add().  Use this instead.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent d76a4476
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -242,14 +242,12 @@ static int s2mps11_clk_probe(struct platform_device *pdev)
			goto err_reg;
		}

		s2mps11_clk->lookup = clkdev_alloc(s2mps11_clk->clk,
		s2mps11_clk->lookup = clkdev_create(s2mps11_clk->clk,
					s2mps11_name(s2mps11_clk), NULL);
		if (!s2mps11_clk->lookup) {
			ret = -ENOMEM;
			goto err_lup;
		}

		clkdev_add(s2mps11_clk->lookup);
	}

	for (i = 0; i < S2MPS11_CLKS_NUM; i++) {