Skip to content

Commit

Permalink
of/gpio: fix of_gpio includes
Browse files Browse the repository at this point in the history
drivers/of/gpio.c is missing includes for of_irq and struct device which
cause build failures on ARM.  This patch adds the correct include files
and removes the unneeded kernel.h include

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Grant Likely committed Jul 5, 2010
1 parent 391c970 commit 2e13cba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/of/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
* (at your option) any later version.
*/

#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/slab.h>
#include <linux/of_address.h>
#include <linux/of_gpio.h>
#include <asm/prom.h>
#include <linux/slab.h>

/**
* of_get_gpio_flags - Get a GPIO number and flags to use with GPIO API
Expand Down

0 comments on commit 2e13cba

Please sign in to comment.