lkml.org 
[lkml]   [2010]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -mmotm] misc: fix ad525X_dpot build
From: Randy Dunlap <randy.dunlap@oracle.com>

Add slab.h to fix build:

drivers/misc/ad525x_dpot.c:609: error: implicit declaration of function 'kzalloc'
drivers/misc/ad525x_dpot.c:609: warning: assignment makes pointer from integer without a cast
drivers/misc/ad525x_dpot.c:656: error: implicit declaration of function 'kfree'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Michael Hennerich <michael.hennerich@analog.com>
---
drivers/misc/ad525x_dpot.c | 1 +
1 file changed, 1 insertion(+)

--- mmotm-2010-0511-1820.orig/drivers/misc/ad525x_dpot.c
+++ mmotm-2010-0511-1820/drivers/misc/ad525x_dpot.c
@@ -70,6 +70,7 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
+#include <linux/slab.h>

#define DRIVER_VERSION "0.2"


\
 
 \ /
  Last update: 2010-05-12 22:43    [W:0.028 / U:3.756 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site