[CLEAN] remove install_kern_otg_probe()
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 29 May 2013 07:41:37 +0000 (11:41 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 29 May 2013 07:41:37 +0000 (11:41 +0400)
driver/probes_manager.c
driver/probes_manager.h

index cd8897c..75eda00 100644 (file)
@@ -169,36 +169,3 @@ int reset_probes(void)
 
        return 0;
 }
-
-int install_kern_otg_probe(unsigned long addr,
-                          unsigned long pre_handler,
-                          unsigned long jp_handler,
-                          unsigned long rp_handler)
-{
-       kernel_probe_t *p;
-       int ret = 0;
-
-       p = find_probe(addr);
-       if (p) {
-               return -EINVAL;;
-       }
-
-       p = create_kern_probe(addr);
-       if (!p)
-               return -ENOMEM;
-
-       p->jprobe.pre_entry = (kprobe_pre_entry_handler_t)pre_handler;
-       p->jprobe.entry = (kprobe_opcode_t *)jp_handler;
-       p->retprobe.handler = (kretprobe_handler_t)rp_handler;
-
-       add_probe_to_list(p);
-
-       ret = register_kernel_probe(p);
-       if (ret) {
-               EPRINTF("Cannot set kernel probe at addr %lx", addr);
-               return ret;
-       }
-
-       return 0;
-}
-EXPORT_SYMBOL_GPL(install_kern_otg_probe);
index 9cf1226..117a479 100644 (file)
@@ -39,9 +39,5 @@ int unset_kernel_probes(void);
 
 void dbi_install_user_handlers(void);
 void dbi_uninstall_user_handlers(void);
-int install_kern_otg_probe(unsigned long addr,
-                          unsigned long pre_handler,
-                          unsigned long jp_handler,
-                          unsigned long rp_handler);
 
 #endif // !defined(__PROBES_MANAGER_H__)