ARM: shmobile: lager: fix error return code check from clk_get()
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 14 Jan 2014 18:43:26 +0000 (18:43 +0000)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:22:04 +0000 (09:22 +0900)
commit47bd8e4b67205afe7a54e7777a51e226b00a9842
treeee93c62b6131e6e268b11d3e264bd0b4392ede2e
parentb3fe42e87bbf6f832fe096892985ad33a221ea81
ARM: shmobile: lager: fix error return code check from clk_get()

The lager_add_standard_devices() function calls clk_get() but then fails
to check that it returns an error pointer instead of NULL on failure.

This was added by 4a606af2 ("ARM: shmobile: lager-reference: Instantiate
clkdevs for SCIF and CMT") patch in Simon Horman's renesas-boards2-for-v3.14
tag.

The issue is not serious as it does not cause a crash and seems to not be
actually causing any issues now the other clock bugs have been fixed.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[horms+renesas@verge.net.au: tweaked changelog]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
(cherry picked from commit 7a543d8124e7e23190d36e7c57d3b9c394c4e4c1)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-lager-reference.c