staging: wlags49_h2: remove custom macros min() and max()
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Tue, 12 Oct 2010 13:22:49 +0000 (16:22 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 12 Oct 2010 16:03:30 +0000 (09:03 -0700)
Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/wlags49_h2/hcf.c
drivers/staging/wlags49_h2/hcfdef.h

index c4fe0ec95074b3cc668fb0713b7de277730d4828..d4bdd3ee8be13e568952fe8dfa084d9a0beb8348 100644 (file)
@@ -92,6 +92,7 @@
 #include "hcf.h"                               // HCF and MSF common include file
 #include "hcfdef.h"                            // HCF specific include file
 #include "mmd.h"                               // MoreModularDriver common include file
+#include <linux/kernel.h>
 
 #if ! defined offsetof
 #define offsetof(s,m)   ((unsigned int)&(((s *)0)->m))
index f7e74bfbadfa647acbd28cd0c25d9b0f2f256159..4e20171b782995dbd866b3585d06a16e70c156c3 100644 (file)
@@ -593,14 +593,6 @@ err: ;
 /**************************************  MACROS  ************************************************/
 /************************************************************************************************/
 
-/* min and max macros */
-#if ! defined max
-#define max(a,b)               (((a) > (b)) ? (a) : (b))
-#endif
-#if ! defined min
-#define min(a,b)               (((a) < (b)) ? (a) : (b))
-#endif
-
 #ifdef HCF_SLEEP
 #if defined MSF_WAIT
 err: MSF should no longer supply this macro;