Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/512x: fix clk_get() return value

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

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

authored by

Akinobu Mita and committed by
Grant Likely
59482fe5 2bfc96a1

+1 -1
+1 -1
arch/powerpc/platforms/512x/clock.c
··· 57 57 int id_match = 0; 58 58 59 59 if (dev == NULL || id == NULL) 60 - return NULL; 60 + return clk; 61 61 62 62 mutex_lock(&clocks_mutex); 63 63 list_for_each_entry(p, &clocks, node) {