Commit a9f428b6 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by James Toy

Drivers should be including <linux/gpio.h> not <asm/gpio.h>.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent a9a637e4
...@@ -46,8 +46,7 @@ ...@@ -46,8 +46,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/gpio.h>
#include <asm/gpio.h>
/* Steal the hardware definitions from the bttv driver. */ /* Steal the hardware definitions from the bttv driver. */
#include "../media/video/bt8xx/bt848.h" #include "../media/video/bt8xx/bt848.h"
......
...@@ -6,12 +6,10 @@ ...@@ -6,12 +6,10 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/gpio.h>
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <linux/spi/mcp23s08.h> #include <linux/spi/mcp23s08.h>
#include <asm/gpio.h>
/* Registers are all 8 bits wide. /* Registers are all 8 bits wide.
* *
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/gpio.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c/pca953x.h> #include <linux/i2c/pca953x.h>
#ifdef CONFIG_OF_GPIO #ifdef CONFIG_OF_GPIO
...@@ -20,8 +21,6 @@ ...@@ -20,8 +21,6 @@
#include <linux/of_gpio.h> #include <linux/of_gpio.h>
#endif #endif
#include <asm/gpio.h>
#define PCA953X_INPUT 0 #define PCA953X_INPUT 0
#define PCA953X_OUTPUT 1 #define PCA953X_OUTPUT 1
#define PCA953X_INVERT 2 #define PCA953X_INVERT 2
......
...@@ -20,11 +20,10 @@ ...@@ -20,11 +20,10 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/gpio.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c/pcf857x.h> #include <linux/i2c/pcf857x.h>
#include <asm/gpio.h>
static const struct i2c_device_id pcf857x_id[] = { static const struct i2c_device_id pcf857x_id[] = {
{ "pcf8574", 8 }, { "pcf8574", 8 },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment