X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fkobj_map.h;h=73717ed9ea7912788cbe2c7f550eefd843d4aa97;hb=123995b97136cb41fa282f0ed2385f2c8066df96;hp=cbe7d8008042baa9385d3e3ec01aaf48b485b614;hpb=1ef43204f4bd24dcd3156185b19b31b6b4151ae9;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/kobj_map.h b/include/linux/kobj_map.h index cbe7d800804..73717ed9ea7 100644 --- a/include/linux/kobj_map.h +++ b/include/linux/kobj_map.h @@ -1,6 +1,4 @@ -#ifdef __KERNEL__ - -#include +#include typedef struct kobject *kobj_probe_t(dev_t, int *, void *); struct kobj_map; @@ -9,6 +7,4 @@ int kobj_map(struct kobj_map *, dev_t, unsigned long, struct module *, kobj_probe_t *, int (*)(dev_t, void *), void *); void kobj_unmap(struct kobj_map *, dev_t, unsigned long); struct kobject *kobj_lookup(struct kobj_map *, dev_t, int *); -struct kobj_map *kobj_map_init(kobj_probe_t *, struct semaphore *); - -#endif +struct kobj_map *kobj_map_init(kobj_probe_t *, struct mutex *);