[REFACTOR] remve 'spinlock_t ec_probe_spinlock'
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 24 Apr 2013 15:01:08 +0000 (19:01 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 24 Apr 2013 15:01:08 +0000 (19:01 +0400)
it is not used

driver/ec.c
driver/probes_manager.c
driver/probes_manager.h

index 54470e1..d879314 100644 (file)
@@ -43,12 +43,6 @@ ec_probe_info_t ec_probe_info = {
        .address = NULL,
 };
 
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38)
-spinlock_t ec_probe_spinlock;  // protects 'ec_probe_info'
-#else /* LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) */
-spinlock_t ec_probe_spinlock = SPIN_LOCK_UNLOCKED;
-#endif /* LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) */
-
 ec_state_t GetECState(void) { return ec_info.ec_state; };
 
 void reset_ec_info_nolock(void)
index ec9f9f7..ce7c625 100644 (file)
@@ -30,7 +30,6 @@ probes_manager_init (void)
        int ret;
 #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38)
        spin_lock_init(&ec_spinlock);
-       spin_lock_init(&ec_probe_spinlock);
 #endif /* LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) */
 
        ret = init_helper();
index c213529..8b32f45 100644 (file)
@@ -47,8 +47,4 @@ int install_kern_otg_probe(unsigned long addr,
                           unsigned long jp_handler,
                           unsigned long rp_handler);
 
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38)
-extern spinlock_t ec_probe_spinlock;
-#endif /* LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) */
-
 #endif // !defined(__PROBES_MANAGER_H__)