[PATCH] usb: gadget: net2272 - Correct includes

From: Geert Uytterhoeven
Date: Mon Aug 08 2011 - 05:37:15 EST


<linux/irq.h> states:

* Please do not include this file in generic code. There is currently
* no requirement for any architecture to implement anything held
* within this file.

prefetch() and prefetchw() need <linux/prefetch.h> on m68k:

drivers/usb/gadget/net2272.c: In function ânet2272_write_fifoâ:
drivers/usb/gadget/net2272.c:468: error: implicit declaration of function âprefetchâ
drivers/usb/gadget/net2272.c: In function ânet2272_read_fifoâ:
drivers/usb/gadget/net2272.c:574: error: implicit declaration of function âprefetchwâ

Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
---
drivers/usb/gadget/net2272.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/gadget/net2272.c b/drivers/usb/gadget/net2272.c
index 7c7b0e1..ab98ea9 100644
--- a/drivers/usb/gadget/net2272.c
+++ b/drivers/usb/gadget/net2272.c
@@ -27,13 +27,13 @@
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/ioport.h>
-#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/pci.h>
#include <linux/platform_device.h>
+#include <linux/prefetch.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/timer.h>
--
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/