RK29SmartPhone:SDK board does not have bp_ap_wakeup GPIO, so add judge here before...
authorphc <phc@rk29>
Tue, 28 Jun 2011 11:33:25 +0000 (19:33 +0800)
committerphc <phc@rk29>
Tue, 28 Jun 2011 11:33:25 +0000 (19:33 +0800)
drivers/misc/mtk23d.c

index ddec43d1b0c4dd573a72ac29e97d264a2e90a047..ce7699ea9156704108d3072a01edf2073a9946c9 100755 (executable)
@@ -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;