From: phc Date: Tue, 28 Jun 2011 11:33:25 +0000 (+0800) Subject: RK29SmartPhone:SDK board does not have bp_ap_wakeup GPIO, so add judge here before... X-Git-Tag: firefly_0821_release~10163^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=509f2358483c39bc5d2a91a814995b7821ce33d7;p=firefly-linux-kernel-4.4.55.git RK29SmartPhone:SDK board does not have bp_ap_wakeup GPIO, so add judge here before use the GPIO --- 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;