]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fsl-lbc: Fix for fsl_upm
authorAlexandre Rusev <arusev@dev.rtsoft.ru>
Thu, 27 Oct 2011 14:18:37 +0000 (18:18 +0400)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 24 Nov 2011 08:00:42 +0000 (02:00 -0600)
commit23ba076f60c734960b8a1f3f071af5455d39d361
tree8a9220e1e82fe248b652d9bf3da96437b52e987b
parenta9e474dadb0b95238de1e41a38cc68e77d869c08
powerpc/fsl-lbc: Fix for fsl_upm

If Freescale LBC driver fails to initialise itself from device tree, then
internal structure is freed only but not NULL-fied.  As result functions
fsl_lbc_find() after checking the structure is not NULL are trying to
access device registers.

Signed-off-by: Alexandre Rusev <arusev@dev.rtsoft.ru>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/fsl_lbc.c