i2c-eg20t: include slab.h for memory allocations
authorWolfram Sang <[email protected]>
Wed, 23 Feb 2011 10:11:35 +0000 (11:11 +0100)
committerBen Dooks <[email protected]>
Tue, 8 Mar 2011 23:13:30 +0000 (23:13 +0000)
Fixes (with v2.6.38-rc3/parisc/parisc-allmodconfig):
  src/drivers/i2c/busses/i2c-eg20t.c:720: error: implicit declaration of function 'kzalloc'
  src/drivers/i2c/busses/i2c-eg20t.c:790: error: implicit declaration of function 'kfree'

Reported-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Cc: Tomoya MORINAGA <[email protected]>
Cc: Ben Dooks <[email protected]>
Signed-off-by: Ben Dooks <[email protected]>
drivers/i2c/busses/i2c-eg20t.c

index 2e067dd2ee5154a185b6c2ad1f315a41459bf604..50ea1f43bdc1ea6f11688c64e044fe573736dba4 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/pci.h>
 #include <linux/mutex.h>
 #include <linux/ktime.h>
+#include <linux/slab.h>
 
 #define PCH_EVENT_SET  0       /* I2C Interrupt Event Set Status */
 #define PCH_EVENT_NONE 1       /* I2C Interrupt Event Clear Status */