Commit 5e1c53356d79591b10cdea12e3d5ebace8e7b6fa

Authored by Greg Ungerer
1 parent c7484cf467

m68knommu: include sched.h in ColdFire/SPI driver

Using the coldfire qspi driver, I get the following error:

drivers/spi/coldfire_qspi.c: In function 'mcfqspi_irq_handler':
drivers/spi/coldfire_qspi.c:166: error: 'TASK_NORMAL' undeclared (first use in this function)
drivers/spi/coldfire_qspi.c:166: error: (Each undeclared identifier is reported only once

It is solved by adding the following include to coldfire_sqpi.c:

    #include <linux/sched.h>

Fix suggested by Jate Sujjavanich <jsujjavanich@syntech-fuelmaster.com>

Signed-off-by: Greg Ungerer <gerg@uclinux.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/spi/coldfire_qspi.c
... ... @@ -24,6 +24,7 @@
24 24 #include <linux/interrupt.h>
25 25 #include <linux/errno.h>
26 26 #include <linux/platform_device.h>
  27 +#include <linux/sched.h>
27 28 #include <linux/workqueue.h>
28 29 #include <linux/delay.h>
29 30 #include <linux/io.h>