[svn-commits] sruffell: branch linux/2.4 r9895 - /linux/branches/2.4/include/dahdi/kernel.h
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Apr 11 13:45:11 CDT 2011
Author: sruffell
Date: Mon Apr 11 13:45:05 2011
New Revision: 9895
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9895
Log:
dahdi: Do not define dev_name if already backported.
RHEL 5.6 has backported dev_name in include/dahdi/devices.h. We now need to
check for a back ported definition before defining our own version on pre
2.6.26 kernels.
(closes issue #18992)
Reported by: ndupeux, AlexCeli
Tested by: elguero
Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Acked-by: Shaun Ruffell <sruffell at digium.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9894
Modified:
linux/branches/2.4/include/dahdi/kernel.h
Modified: linux/branches/2.4/include/dahdi/kernel.h
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.4/include/dahdi/kernel.h?view=diff&rev=9895&r1=9894&r2=9895
==============================================================================
--- linux/branches/2.4/include/dahdi/kernel.h (original)
+++ linux/branches/2.4/include/dahdi/kernel.h Mon Apr 11 13:45:05 2011
@@ -87,7 +87,13 @@
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
-#define dev_name(dev) (dev)->bus_id
+# ifdef RHEL_RELEASE_VERSION
+# if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(5, 6)
+#define dev_name(dev) ((dev)->bus_id)
+# endif
+# else
+#define dev_name(dev) ((dev)->bus_id)
+# endif
#define dev_set_name(dev, format, ...) \
snprintf((dev)->bus_id, BUS_ID_SIZE, format, ## __VA_ARGS__);
#endif
More information about the svn-commits
mailing list