mfd: Explicitely include slab.h to rtsx
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 9 Nov 2012 09:19:54 +0000 (10:19 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 9 Nov 2012 09:27:45 +0000 (10:27 +0100)
This fixes the following build error on some architectures (parisc at least):

drivers/mfd/rtsx_pcr.c: In function 'rtsx_pci_init_chip':
drivers/mfd/rtsx_pcr.c:985:2: error: implicit declaration of function 'kcalloc'
[-Werror=implicit-function-declaration]
drivers/mfd/rtsx_pcr.c:985:13: warning: assignment makes pointer from integer
without a cast [enabled by default]

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/rtsx_pcr.c

index 56d4377c62c2b5b4e62bb6e51f24163ff4765629..3a44efa292036df17261bf7b2c95f35522d9f651 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <linux/pci.h>
 #include <linux/module.h>
+#include <linux/slab.h>
 #include <linux/dma-mapping.h>
 #include <linux/highmem.h>
 #include <linux/interrupt.h>