modify tdsc8800 bug.
authorzwp <zwp@rock-chips.com>
Tue, 26 Jun 2012 01:05:38 +0000 (09:05 +0800)
committerzwp <zwp@rock-chips.com>
Tue, 26 Jun 2012 01:08:00 +0000 (09:08 +0800)
drivers/misc/tdsc8800.c

index fed23a14a257254c0992894273942ae3c5c34e9b..6db48f071b767bba138fd630fc47d5c4f1f6c2df 100755 (executable)
@@ -65,6 +65,7 @@ static int tdsc8800_open(struct inode *inode, struct file *file)
 static int tdsc8800_release(struct inode *inode, struct file *file)
 {
        MODEMDBG("tdsc8800_release\n");
+       modem_poweron_off(0);
 
        return 0;
 }
@@ -124,7 +125,7 @@ static int tdsc8800_probe(struct platform_device *pdev)
        
         gpio_direction_output(pdata->bp_power, GPIO_LOW);
 
-       gpio_set_value(pdata->bp_power, pdata->bp_reset_active_low? GPIO_LOW:GPIO_HIGH);
+       gpio_set_value(pdata->bp_power, pdata->bp_power_active_low? GPIO_LOW:GPIO_HIGH);
        result = misc_register(&tdsc8800_misc);
        if(result)
        {