diff options
author | 2010-05-23 03:10:35 -0400 | |
---|---|---|
committer | 2010-06-18 13:14:32 -0700 | |
commit | 1cb6c1f59431f16e46f0d07398cc789ee0a26731 (patch) | |
tree | 5019f8f0caf68ab1c1fa7e5ad8263f16b4f67b11 /drivers/staging/iio/accel/adis16240_core.c | |
parent | Staging: iio: kill off spurious semicolons (diff) | |
download | linux-1cb6c1f59431f16e46f0d07398cc789ee0a26731.tar.gz linux-1cb6c1f59431f16e46f0d07398cc789ee0a26731.tar.bz2 linux-1cb6c1f59431f16e46f0d07398cc789ee0a26731.zip |
Staging: iio: pull in slab.h for kmalloc funcs
These drivers use kzalloc() but don't include slab.h. They currently
build though because the spi.h header will pull in slab.h for us. But
rather than rely on that behavior forever, include slab.h explicitly.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/accel/adis16240_core.c')
-rw-r--r-- | drivers/staging/iio/accel/adis16240_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/accel/adis16240_core.c b/drivers/staging/iio/accel/adis16240_core.c index 54fd6d77412f..316022f25b19 100644 --- a/drivers/staging/iio/accel/adis16240_core.c +++ b/drivers/staging/iio/accel/adis16240_core.c @@ -14,7 +14,7 @@ #include <linux/device.h> #include <linux/kernel.h> #include <linux/spi/spi.h> - +#include <linux/slab.h> #include <linux/sysfs.h> #include <linux/list.h> |