Author: marek Date: 2010-06-10 09:50:32 +0200 (Thu, 10 Jun 2010) New Revision: 1697
Modified: trunk/batman-adv-kernelland/compat.h Log: batman-adv: Use kobject_unregister in kernel before 2.6.25
kobject_unregister was replaced in v2.6.24-172-gc10997f by kobject_put. The old version of kobject_put before v2.6.24-169-g0f4dafc worked different and couldn't cleanup everything depending on the state as it wasn't saved inside the kobject.
Reported-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de Signed-off-by: Marek Lindner lindner_marek@yahoo.de Signed-off-by: Sven Eckelmann sven.eckelmann@gmx.de
Modified: trunk/batman-adv-kernelland/compat.h =================================================================== --- trunk/batman-adv-kernelland/compat.h 2010-06-09 21:09:13 UTC (rev 1696) +++ trunk/batman-adv-kernelland/compat.h 2010-06-10 07:50:32 UTC (rev 1697) @@ -130,6 +130,8 @@ return kobj; }
+#define kobject_put(kobj) kobject_unregister(kobj) + #endif /* < KERNEL_VERSION(2, 6, 25) */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)