From 509f2358483c39bc5d2a91a814995b7821ce33d7 Mon Sep 17 00:00:00 2001 From: phc Date: Tue, 28 Jun 2011 19:33:25 +0800 Subject: [PATCH] RK29SmartPhone:SDK board does not have bp_ap_wakeup GPIO, so add judge here before use the GPIO --- drivers/misc/mtk23d.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/mtk23d.c b/drivers/misc/mtk23d.c index ddec43d1b0c4..ce7699ea9156 100755 --- a/drivers/misc/mtk23d.c +++ b/drivers/misc/mtk23d.c @@ -161,7 +161,8 @@ int modem_poweron_off(int on_off) #endif gpio_direction_input(pdata->bp_statue); - gpio_direction_input(pdata->bp_ap_wakeup); + if(pdata->bp_ap_wakeup) // SDK°åÖУ¬¸Ã¿ÚûÓÐÒý³ö + gpio_direction_input(pdata->bp_ap_wakeup); /* ³õʼ»¯BP»½ÐÑAPµÄ¹¦ÄÜ */ wakelock_inited = false; -- 2.34.1