rk808: fix a err when no sleep pin in dts
authorChris Zhong <zyw@rock-chips.com>
Wed, 26 Aug 2015 09:54:55 +0000 (17:54 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Tue, 8 Sep 2015 09:05:42 +0000 (17:05 +0800)
commit83e9a56bb115ffa925ab515ed29fa41bc81849a2
treed69fe60860fc3c77e86f3467a76c9d73d5506016
parent927209616e94e41d690f50879aca87dd33f7d52a
rk808: fix a err when no sleep pin in dts

Rk808 will data abort if it has not sleep gpio in dts, and there is no
pmic_sleep_gpio for some board, add a validity checking before
gpio_request can fix this data abort.

Change-Id: Ic2b40f7bfb00e95d283dce72a33dd844cc2c7e27
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
drivers/mfd/rk808.c