summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2015-08-14 10:36:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-08-19 15:56:29 +0200
commit1b07449805f7ff6e897da8653a08501c91598ade (patch)
tree8e3033fb0b29f7a4a9924eb60907f5324d26c4f6 /drivers/gpio
parentc677a05b50a42a61ec3504edaa6035f0fb9d61ad (diff)
downloadbarebox-1b07449805f7ff6e897da8653a08501c91598ade.tar.gz
barebox-1b07449805f7ff6e897da8653a08501c91598ade.tar.xz
gpio: dw: fix copy&paste variable name
This is a DW driver not IMX; fix variable name. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-dw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-dw.c b/drivers/gpio/gpio-dw.c
index e582eb6d91..362f365fa6 100644
--- a/drivers/gpio/gpio-dw.c
+++ b/drivers/gpio/gpio-dw.c
@@ -99,7 +99,7 @@ static int dw_gpio_get_direction(struct gpio_chip *gc, unsigned offset)
GPIOF_DIR_OUT : GPIOF_DIR_IN;
}
-static struct gpio_ops imx_gpio_ops = {
+static struct gpio_ops dw_gpio_ops = {
.direction_input = dw_gpio_direction_input,
.direction_output = dw_gpio_direction_output,
.get_direction = dw_gpio_get_direction,
@@ -118,7 +118,7 @@ static int dw_gpio_probe(struct device_d *dev)
if (IS_ERR(chip->regs))
return PTR_ERR(chip->regs);
- chip->chip.ops = &imx_gpio_ops;
+ chip->chip.ops = &dw_gpio_ops;
if (dev->id < 0) {
chip->chip.base = of_alias_get_id(dev->device_node, "gpio");
if (chip->chip.base < 0)