]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[IA64] dmi.h: Make dmi_alloc use kzalloc
authorJoe Perches <joe@perches.com>
Tue, 9 Jul 2013 17:13:03 +0000 (10:13 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 19 Aug 2013 17:24:01 +0000 (10:24 -0700)
x86/ia64 have a slight mismatch in dmi_alloc as
x86 does a memset(0), and ia64 just does kmalloc.

Make the ia64 dmi_alloc match the x86 style.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/include/asm/dmi.h

index 1ed4c8fedb8370e7b8403e36244b2fce043e0aae..185d3d18d0ec08d8319a317432074de0a8abca54 100644 (file)
@@ -7,6 +7,6 @@
 /* Use normal IO mappings for DMI */
 #define dmi_ioremap ioremap
 #define dmi_iounmap(x,l) iounmap(x)
-#define dmi_alloc(l) kmalloc(l, GFP_ATOMIC)
+#define dmi_alloc(l) kzalloc(l, GFP_ATOMIC)
 
 #endif