summaryrefslogtreecommitdiffstats
path: root/drivers/ptp
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2012-05-16 01:50:17 +0000
committerDavid S. Miller <davem@davemloft.net>2012-05-16 14:44:44 -0400
commit769b0daf6e18a05a6d4da94baab7edd12867350c (patch)
tree2b6c01510058a3c788a5c385587f787e7c3884dc /drivers/ptp
parentd0cad88d071d59169ac25e5c1e3bee0719a4fccf (diff)
downloadlinux-stable-769b0daf6e18a05a6d4da94baab7edd12867350c.tar.gz
linux-stable-769b0daf6e18a05a6d4da94baab7edd12867350c.tar.bz2
linux-stable-769b0daf6e18a05a6d4da94baab7edd12867350c.zip
ptp_pch: Add missing #include <linux/slab.h>
drivers/ptp/ptp_pch.c: In function 'pch_remove': drivers/ptp/ptp_pch.c:576:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration] drivers/ptp/ptp_pch.c: In function 'pch_probe': drivers/ptp/ptp_pch.c:587:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration] Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp')
-rw-r--r--drivers/ptp/ptp_pch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c
index 375eb04c16ea..6fff68020488 100644
--- a/drivers/ptp/ptp_pch.c
+++ b/drivers/ptp/ptp_pch.c
@@ -30,6 +30,7 @@
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/ptp_clock_kernel.h>
+#include <linux/slab.h>
#define STATION_ADDR_LEN 20
#define PCI_DEVICE_ID_PCH_1588 0x8819