]> git.dujemihanovic.xyz Git - u-boot.git/commit
power: fix: Do not execute pmic command when not all necessary parameters are passed
authorŁukasz Majewski <l.majewski@samsung.com>
Mon, 24 Feb 2014 12:33:08 +0000 (13:33 +0100)
committerTom Rini <trini@ti.com>
Mon, 24 Feb 2014 15:56:33 +0000 (10:56 -0500)
commiteae745379d4c6453d8f8888a8003a1c1ebcfbbd3
treed50ee5458a84172dd4eb82cbca0e305e98ccc169
parent6445262ca8d0400def05c4ef8e2b8e8424929599
power: fix: Do not execute pmic command when not all necessary parameters are passed

Lack of this check resulted in a data abort when CPU tried to execute the
following command (without further mandatory input): 'pmic MAX77686_PMIC'.

Only the 'pmic list' command requires one passed parameter.
Other require at least two valid parameters for correct operation.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/power/power_core.c