update bp driver
author赵子初 <zzc@rock-chips.com>
Tue, 12 Mar 2013 09:39:27 +0000 (17:39 +0800)
committer赵子初 <zzc@rock-chips.com>
Tue, 12 Mar 2013 09:39:27 +0000 (17:39 +0800)
drivers/misc/bp/chips/c66a.c
drivers/misc/bp/chips/m51.c
drivers/misc/bp/chips/mi700.c
drivers/misc/bp/chips/mt6229.c
drivers/misc/bp/chips/mtk6250.c
drivers/misc/bp/chips/mu509.c
drivers/misc/bp/chips/mw100.c
drivers/misc/bp/chips/sc6610.c

index a5457516f6e8c99b8a4b37a05f45711c91319562..2ec6c3656b2192ff7849f0e59f4cac73bf49b419 100644 (file)
@@ -74,12 +74,9 @@ static int bp_wake_ap(struct bp_private_data *bp)
 {\r
        int result = 0;\r
        \r
-       if(bp->suspend_status)\r
-       {\r
-               printk("<-----c66a bp_wake_ap-------->\n");\r
-               bp->suspend_status = 0;         \r
-               wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
-       }\r
+       printk("<-----c66a bp_wake_ap-------->\n");\r
+       bp->suspend_status = 0;         \r
+       wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
        \r
        return result;\r
 }\r
index 8e32bf0c8441489bbb372e0301decb860e381a12..e1542b0b0ee1c047ecd141977fab73205f386710 100755 (executable)
@@ -84,11 +84,8 @@ static int bp_wake_ap(struct bp_private_data *bp)
 {\r
        int result = 0;\r
        \r
-       if(bp->suspend_status)\r
-       {\r
-               bp->suspend_status = 0;         \r
-               wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
-       }\r
+       bp->suspend_status = 0;         \r
+       wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
        \r
        return result;\r
 }\r
index 876a550d3a16cbda120308334ed54baef5d07ba4..ff6b525117de2591169635b32c7c99abc2ccc211 100755 (executable)
@@ -84,11 +84,8 @@ static int bp_wake_ap(struct bp_private_data *bp)
 {\r
        int result = 0;\r
        \r
-       if(bp->suspend_status)\r
-       {\r
-               bp->suspend_status = 0;\r
-               wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
-       }\r
+       bp->suspend_status = 0;\r
+       wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
        \r
        return result;\r
 }\r
index 20abc1dfeac22805901aac4bead295f727b8b0a0..94648abd276ed893929b29a85593f69a8f605898 100755 (executable)
@@ -128,11 +128,8 @@ static int bp_wake_ap(struct bp_private_data *bp)
 {\r
        int result = 0;\r
        \r
-       if(bp->suspend_status)\r
-       {\r
-               bp->suspend_status = 0;\r
-               wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
-       }\r
+       bp->suspend_status = 0;\r
+       wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
        \r
        return result;\r
 }\r
index 6cee50d5145659470775e1f6f503cdda8ce37a77..c7b0460c24f91d29eb01717114d8c9afdda8e54f 100644 (file)
@@ -83,11 +83,8 @@ static int bp_wake_ap(struct bp_private_data *bp)
 {\r
        int result = 0;\r
        \r
-       if(bp->suspend_status)\r
-       {\r
-               bp->suspend_status = 0;         \r
-               wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
-       }\r
+       bp->suspend_status = 0;         \r
+       wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
        \r
        return result;\r
 }\r
index fdc667c7c2ef101f9e249fe1d775926222442791..c7e85fc95cc22a6e462412987ff899f4c7f77387 100755 (executable)
@@ -144,11 +144,8 @@ static int bp_wake_ap(struct bp_private_data *bp)
 {\r
        int result = 0;\r
        \r
-       if(bp->suspend_status)\r
-       {\r
-               bp->suspend_status = 0;\r
-               wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
-       }\r
+       bp->suspend_status = 0;\r
+       wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
        \r
        return result;\r
 }\r
index 39bf35ad7d44fede4c97828d07417deb89c8be66..71cf5b45ef7864be1c7590fe9b44d550e46e863d 100755 (executable)
@@ -96,11 +96,8 @@ static int bp_wake_ap(struct bp_private_data *bp)
 {\r
        int result = 0;\r
        \r
-       if(bp->suspend_status)\r
-       {\r
-               bp->suspend_status = 0;         \r
-               wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
-       }\r
+       bp->suspend_status = 0;\r
+       wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
        \r
        return result;\r
 }\r
@@ -159,7 +156,7 @@ static int bp_suspend(struct bp_private_data *bp)
 }\r
 static int bp_resume(struct bp_private_data *bp)\r
 {\r
-       \r
+\r
        bp->suspend_status = 0; \r
        gpio_set_value(bp->ops->ap_wakeup_bp, GPIO_HIGH);       \r
        \r
index 4bdcb2eed152937860ae530b6fa90b432210d0c0..cd67c07ff9fc4cf51bf7ec562e1cd0bd723bdb34 100755 (executable)
@@ -74,12 +74,9 @@ static int bp_wake_ap(struct bp_private_data *bp)
 {\r
        int result = 0;\r
        \r
-       if(bp->suspend_status)\r
-       {\r
                printk("<-----sc6610 bp_wake_ap-------->\n");\r
                bp->suspend_status = 0;         \r
                wake_lock_timeout(&bp->bp_wakelock, 10 * HZ);\r
-       }\r
        \r
        return result;\r
 }\r