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

Commit 59482fe5 authored by Akinobu Mita's avatar Akinobu Mita Committed by Grant Likely
Browse files

powerpc/512x: fix clk_get() return value



clk_get() should return an ERR_PTR value on error, not NULL.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 2bfc96a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ static struct clk *mpc5121_clk_get(struct device *dev, const char *id)
	int id_match = 0;

	if (dev == NULL || id == NULL)
		return NULL;
		return clk;

	mutex_lock(&clocks_mutex);
	list_for_each_entry(p, &clocks, node) {