Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddf4f3d9 authored by Hartley Sweeten's avatar Hartley Sweeten Committed by Russell King
Browse files

[ARM] 5574/1: ep93xx: gpio.c: fix header includes and __iomem pointers



Fix ep93xx gpio.c header includes and __iomem pointers.

  1. <linux/gpio.h> should be included instead of <asm/gpio.h>
  2. <mach/hardware.h> should be included instead of <mach/ep93xx-regs.h>
  3. data_reg and data_dir_reg in struct ep93xx_gpio_chip should be
     void __iomem pointers not unsigned int

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: default avatarRyan Mallon <ryan@bluewatersys.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 702b59e6
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -17,15 +17,15 @@
#include <linux/module.h>
#include <linux/module.h>
#include <linux/seq_file.h>
#include <linux/seq_file.h>
#include <linux/io.h>
#include <linux/io.h>
#include <linux/gpio.h>


#include <mach/ep93xx-regs.h>
#include <mach/hardware.h>
#include <asm/gpio.h>


struct ep93xx_gpio_chip {
struct ep93xx_gpio_chip {
	struct gpio_chip	chip;
	struct gpio_chip	chip;


	unsigned int		data_reg;
	void __iomem		*data_reg;
	unsigned int		data_dir_reg;
	void __iomem		*data_dir_reg;
};
};


#define to_ep93xx_gpio_chip(c) container_of(c, struct ep93xx_gpio_chip, chip)
#define to_ep93xx_gpio_chip(c) container_of(c, struct ep93xx_gpio_chip, chip)